/* =============================================
   Login Page — Login.css
   ============================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.login-page {
    display: flex;
    min-height: 100vh;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ══════════════════════════════
   LEFT PANEL — Orange (same as register)
══════════════════════════════ */
.login-left {
    flex: 0 0 50%;
    max-width: 50%;
    background: #FF4B00;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding: 60px 40px 60px 40px;
}

    /* Outer circle 30% */
    .login-left::before {
        content: '';
        position: absolute;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        /* Figma Linear Gradient: White 100% to White 0% */
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 100%);
        top: 35%;
        left: 50%;
        transform: translate(-50%, -42%);
        z-index: 0;
    }

    /* Inner circle 15% */
    .login-left::after {
        content: '';
        position: absolute;
        width: 380px;
        height: 380px;
        border-radius: 50%;
        /* Figma Linear Gradient: White 100% to White 0% with 15% overall opacity */
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
        top: 35%;
        left: 50%;
        transform: translate(-50%, -38%);
        z-index: 1;
    }

.login-left-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-bottom: 75px;
}

.login-left-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.2;
}

.login-left-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    max-width: 360px;
    margin: 0 auto;
}

.login-mockup {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    margin-top: -20px;
}

    .login-mockup img {
        width: 100%;
        height: auto;
        margin-top: 100px;
        margin-left: 40px;
        object-fit: contain;
        filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
    }

/* ══════════════════════════════
   RIGHT PANEL — White
══════════════════════════════ */
.login-right {
    flex: 1;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 80px;
    overflow-y: auto;
}

/* Brand */
.login-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: cover;
}

.login-brand-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Form */
.login-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

    .form-label .optional {
        font-weight: 400;
        color: #888888;
    }

/* Phone input */
.phone-input-wrap {
    display: flex;
    height: 56px;
    background: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

    .phone-input-wrap:focus-within {
        border-color: #FF4B00;
        background: #ffffff;
    }

.phone-prefix {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    border-right: 1.5px solid #e0e0e0;
    background: #eeeeee;
    white-space: nowrap;
    flex-shrink: 0;
}

.phone-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 15px;
    color: #333333;
    outline: none;
    font-family: inherit;
}

    .phone-input-wrap input::placeholder {
        color: #aaaaaa;
    }

/* Regular input */
.form-input {
    width: 100%;
    height: 56px;
    background: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: 0 18px;
    font-size: 15px;
    color: #333333;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

    .form-input::placeholder {
        color: #aaaaaa;
    }

    .form-input:focus {
        border-color: #FF4B00;
        background: #ffffff;
    }

/* Password input with eye icon */
.password-input-wrap {
    display: flex;
    align-items: center;
    height: 56px;
    background: #F5F5F5;
    border: 1.5px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

    .password-input-wrap:focus-within {
        border-color: #FF4B00;
        background: #ffffff;
    }

.password-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 18px;
    font-size: 15px;
    color: #333333;
    outline: none;
    font-family: inherit;
    height: 100%;
}

    .password-input::placeholder {
        color: #aaaaaa;
    }

.password-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
}

    .password-toggle:hover svg {
        stroke: #FF4B00;
    }

/* Send OTP button */
.btn-send-otp {
    width: 100%;
    height: 56px;
    background: #FF4B00;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}

    .btn-send-otp:hover {
        background: #e04200;
        transform: translateY(-1px);
    }

/* OR divider */
.or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 4px 0;
}

.or-line {
    flex: 1;
    height: 1px;
    background: #e0e0e0;
    display: block;
}

.or-text {
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    white-space: nowrap;
}

/* Forget Password */
.forget-password {
    font-size: 14px;
    font-weight: 600;
    color: #FF4B00;
    text-decoration: none;
    text-align: left;
    margin-top: -8px;
}

    .forget-password:hover {
        text-decoration: underline;
    }

/* Register hyperlink */
.register-link-text {
    font-size: 14px;
    color: #888888;
    text-align: center;
    margin-top: -4px;
}

.register-link {
    color: #FF4B00;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

    .register-link:hover {
        text-decoration: underline;
    }
/* Sign In button */
.btn-signin {
    width: 100%;
    height: 56px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.15s;
    margin-top: 4px;
}

    .btn-signin:hover {
        background: #333333;
        transform: translateY(-1px);
    }

/* Note */
.login-note {
    font-size: 13px;
    color: #aaaaaa;
    text-align: center;
    margin-top: -4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .login-page {
        flex-direction: column;
    }

    .login-left {
        flex: none;
        max-width: 100%;
        min-height: 300px;
        padding: 48px 32px;
    }

    .login-right {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 32px 20px;
    }

    .login-left-title {
        font-size: 22px;
    }
}
