﻿/* =========================
   ROOT VARIABLES
========================= */
.input-error {
    border: 1px solid red !important;
    outline: none;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.3);
}

.input-success {
    border: 1px solid green !important;
}
.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 0;
    margin: 0;
    cursor: pointer;
    vertical-align: middle;
}


:root {
    --primary: #0096e6;
    --primary-dark: #007cc0;
    --light-bg: #f3f6fb;
    --text: black;
    --subtext: #777;
    --white: #fff;
}

*::-webkit-scrollbar {
    width: 12px;
    height: 7px;
    background: #e1f3fc;
    border-radius: 5px;
}

*::-webkit-scrollbar-thumb {
    background-color: #0384db;
    cursor: pointer;
    border-radius: 5px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* =========================
   MAIN LAYOUT
========================= */

.login-container {
    width: 100%;
    height: 100svh;
    display: flex;
    background: var(--white);
}

/* =========================
   LEFT PANEL
========================= */

.left-panel {
    position: relative;
    width: 55%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden;
    background: linear-gradient( 90deg, #0096e6 0%, #37b7ff 45%, white 100% );
}

.left-panel::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient( rgba(255,255,255,0.22), transparent 70% );
    top: 50%;
    left: 38%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    filter: blur(25px);
}

.brand {
    z-index: 2;
    text-align: center;
    position : relative;
}

.brand::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient( rgba(255,255,255,0.22), transparent 70% );
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    z-index: -1;
}

.brand-logo {
    width: 340px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom : 10px;
}

.brand h1 {
    margin-top: 10px;
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -2px;
    background: linear-gradient( 180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.55) );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 6px 30px rgba(255,255,255,0.25);
}

.brand h1 span
{
    display : block;
}

/* =========================
   RIGHT PANEL
========================= */

.right-panel {
    width: 45%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

.form-area {
    width: 100%;
    max-width: 400px;
}

/* =========================
   TOGGLE BUTTONS
========================= */

.toggle-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 3px 30px;
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: #eef6fc;
    color: var(--primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.toggle-btn.active {
    background: var(--primary);
    color: white;
}

.toggle-btn:active {
    transform: scale(0.98);
}

/* =========================
   FORM WRAPPER
========================= */

.form-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 3px;
}

/* =========================
   FORMS
========================= */

.form-container {
    width: 100%;
    display: none;
    animation: fadeSlide 0.35s ease;
}

.form-container.active {
    display: block;
}

@keyframes fadeSlide {

    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================
   HEADINGS
========================= */

.form-container h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: var(--text);
}

.subtitle {
    color: var(--subtext);
    margin-bottom: 35px;
}

/* =========================
   INPUTS
========================= */

.input-group {
    margin-bottom: 12px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 12px;
    background: var(--light-bg);
    font-size: 15px;
    transition: 0.3s;
}

.input-group input:focus {
    background: #edf8ff;
    box-shadow: 0 0 0 2px var(--primary);
}

/* =========================
   PASSWORD TOGGLE
========================= */

.password-group {
    position: relative;
}

.password-group input {
    padding-right: 70px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* =========================
   CAPTCHA
========================= */

.captcha-box {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.captcha-main {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.captcha-canvas {
    flex: 1;
    height: 42.5px;
    border: none;
    border-radius: 12px;
    background: var(--light-bg);
}

.refresh-captcha {
    width: 52px;
    min-width: 52px;
    height: 42.5px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.refresh-captcha:hover {
    background: var(--primary-dark);
}

.captcha-input-group {
    margin-bottom: 0;
}

.captcha-input-group input {
    height: 42.5px;
}

/* =========================
   FORGOT PASSWORD
========================= */

.forgot-password {
    text-align: right;
    margin-bottom: 20px;
}

    .forgot-password a {
        text-decoration: none;
        color: var(--primary);
        font-size: 14px;
    }

/* =========================
   BUTTONS
========================= */

.cbtn {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: white;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cbtn:hover {
    background: var(--primary);
    color: white;
}

.cbtn:active {
    transform: scale(0.98);
}

/* =========================
   Sign Up
========================= */


.Search-field {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-bottom: 12px;
}

.Search-field input {
    width: 100%;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 12px;
    background: var(--light-bg);
    font-size: 15px;
    transition: 0.3s;
}

.Search-field input:focus {
    background: #edf8ff;
    box-shadow: 0 0 0 2px var(--primary);
}

.search-btn {
    width: 52px;
    min-width: 52px;
    height: 42.5px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

    .search-btn:hover {
        background: var(--primary-dark);
    }

/* READONLY INPUT */

input[readonly] {
    background: #edf2f7 !important;
    color: #666;
    cursor: not-allowed;
}

/* EXPAND BUTTON */

.expand-btn {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 12px;
    background: #eef6fc;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .expand-btn:hover {
        background: #dff1fc;
    }

/* EXTRA SIGNUP FIELDS */

.extra-signup-fields {
    display: none;
    animation: fadeSlideDown 0.35s ease;
}

    .extra-signup-fields.active {
        display: block;
    }

/* ANIMATION */

@keyframes fadeSlideDown {

    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACTION BUTTONS */

.action-buttons {
    display: flex;
    gap: 12px;
}

/* BUTTON WIDTH */

.action-buttons .btn {
    flex: 1;
}

.terms-container
{
    margin-bottom : 12px;
}

.terms-link {
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.terms-link:hover {
    text-decoration: underline;
}

.terms-checkbox {
    accent-color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:900px) {

    .login-container {
        display: block;
    }

    .left-panel {
        width: 100%;
        background: linear-gradient(360deg, #16a5eb, #16a5eb);
    }

    .brand-logo
    {
        width : 250px;
    }

    .brand h1
    {
        font-size : 40px;
    }

    .brand h1 span
    {
        display : inline;
    }

    .right-panel {
        width: 100%;
        padding: 30px 20px;
    }

    .border-bubbles {
        display: none;
    }
}

@media(max-width:500px) {

    .left-panel {
        padding: 10px;
    }

    .brand-logo {
        width: 170px;
    }

    .brand h1 {
        font-size: 25px;
    }

    .right-panel {
        padding: 30px 15px;
    }

    .form-container h2 {
        font-size: 28px;
    }

    .toggle-buttons {
        gap: 10px;
    }

    .toggle-btn {
        padding: 12px;
        font-size: 14px;
    }

    .btn {
        padding: 14px;
        font-size: 15px;
    }
}


.noscript-box {
    background: #ffdddd;
    color: #b00020;
    padding: 15px;
    text-align: center;
    font-weight: 600;
}