/* ============================================================
   instantpaymoz — Authentication experience
   Keeps the original structure while giving the login and signup
   screens a cleaner, more consistent premium fintech finish.
   ============================================================ */

.login-screen {
    background:
        radial-gradient(circle at 15% -10%, rgba(229, 9, 20, 0.12), transparent 32%),
        radial-gradient(circle at 110% 35%, rgba(255, 78, 91, 0.06), transparent 34%),
        #08080a;
}

/* Transparent header: the logo sits directly over the hero image. */
.login-screen .top-bar {
    background: transparent;
    border-bottom: none;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.login-screen .logo-text {
    letter-spacing: -0.7px;
}

.login-content {
    padding-bottom: calc(var(--safe-bottom) + 36px);
}

.hero-section {
    border-radius: 0 0 26px 26px;
    margin-bottom: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero-gradient-overlay {
    background: linear-gradient(to bottom, transparent 34%, rgba(8, 8, 10, 0.98) 100%);
}

.hero-title {
    left: 20px;
    bottom: 16px;
}

.hero-line-1 {
    font-size: 1.5rem;
    letter-spacing: -0.9px;
}

.hero-line-2 {
    font-size: 0.82rem;
    margin-top: 2px;
}

/* ---------- Intro block ---------- */
.auth-head {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 22px 2px 8px;
    width: 100%;
}

.auth-head-signup {
    padding-top: 10px;
    padding-bottom: 12px;
}

.auth-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ff5b66;
}

.auth-kicker::before {
    content: '';
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #e50914, #ff4e5b);
}

.auth-title {
    font-family: var(--font-primary);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.65px;
    line-height: 1.15;
    color: #ffffff;
}

.auth-subtitle {
    max-width: 94%;
    font-family: var(--font-body);
    font-size: 0.81rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.47);
}

/* ---------- Form shell ---------- */
.login-form {
    gap: 12px;
    padding: 0 22px;
}

.login-screen .premium-input {
    height: 54px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: #0e0e12;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.login-screen .premium-input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

.login-screen .premium-input:focus {
    border-color: rgba(229, 9, 20, 0.72);
    background: rgba(229, 9, 20, 0.035) !important;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.login-screen .input-icon,
.login-screen .input-prefix {
    color: rgba(255, 255, 255, 0.34);
}

.login-screen .premium-input:focus ~ .input-icon,
.login-screen .premium-input:focus ~ .input-prefix {
    color: #ff5b66;
}

.login-screen .floating-label {
    color: rgba(255, 255, 255, 0.34);
}

.login-screen .btn-primary {
    height: 54px;
    margin-top: 6px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e50914 0%, #b40010 100%);
    box-shadow: 0 12px 28px rgba(229, 9, 20, 0.22);
}

.login-screen .btn-primary:hover {
    background: linear-gradient(135deg, #f20c18 0%, #c30112 100%);
    box-shadow: 0 14px 32px rgba(229, 9, 20, 0.3);
}

.login-screen .btn-text {
    letter-spacing: 0.35px;
}

.login-screen .forgot-link {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.login-screen .forgot-link:hover {
    color: #ffffff;
}

.login-screen .register-row,
.login-screen .login-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 4px;
}

.auth-switch-text {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.42);
}

.login-screen .register-link {
    padding: 6px 4px;
    color: #ff5b66;
    font-size: 0.8rem;
    font-weight: 700;
}

.login-screen .register-link:hover {
    color: #ff8a92;
    background: transparent;
}

/* ---------- Back / view header ---------- */
.login-screen .form-header {
    margin-bottom: 10px;
}

.login-screen .back-btn {
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: #ffffff;
}

.login-screen .back-btn:hover {
    background: rgba(255, 255, 255, 0.095);
}

.login-screen .view-title {
    font-size: 1rem;
    letter-spacing: -0.3px;
}

/* ---------- Signup progress ---------- */
.signup-stepper {
    gap: 10px;
}

.signup-progress {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    padding: 2px 2px 8px;
}

.sp-step {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.sp-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.045);
    font-family: var(--font-primary);
    font-size: 0.64rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.38);
    transition: all 0.25s ease;
}

.sp-step.active .sp-num {
    border-color: transparent;
    background: linear-gradient(135deg, #e50914, #ff4e5b);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.13);
}

.sp-step.done .sp-num {
    border-color: rgba(0, 200, 83, 0.35);
    background: rgba(0, 200, 83, 0.14);
    color: #34d399;
}

.sp-label {
    font-family: var(--font-body);
    font-size: 0.64rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.32);
    white-space: nowrap;
}

.sp-step.active .sp-label {
    color: #ffffff;
}

.sp-line {
    flex: 1;
    height: 1px;
    min-width: 10px;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.25s ease;
}

.sp-line.done {
    background: linear-gradient(90deg, rgba(0, 200, 83, 0.55), rgba(0, 200, 83, 0.18));
}

.signup-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    margin: 0 0 2px;
    padding: 0 2px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.signup-title-text {
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.signup-step-meta {
    font-family: var(--font-primary);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

.field-hint {
    margin: -2px 2px 0;
    font-family: var(--font-body);
    font-size: 0.68rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.34);
}

.login-screen.signup-active .hero-section {
    height: 106px !important;
    margin-bottom: 10px !important;
}

.login-screen.signup-active .hero-section .hero-title {
    bottom: 12px;
    left: 18px;
}

.login-screen.signup-active .hero-line-1 {
    font-size: 1.05rem;
    letter-spacing: -0.5px;
}

.login-screen.signup-active .hero-line-2 {
    display: none;
}

/* ---------- Payment methods ---------- */
.login-screen .social-divider {
    margin-top: 18px;
    margin-bottom: 2px;
}

.login-screen .divider-text {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.login-screen .divider-line {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09));
}

.login-screen .divider-line:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent);
}

.login-screen .payment-btn {
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: #0e0e12;
    border-radius: 14px;
}

.login-screen .payment-btn:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: #141419;
}

/* ---------- Mobile polish ---------- */
@media (max-width: 380px) {
    .login-form {
        padding: 0 16px;
    }

    .auth-title {
        font-size: 1.38rem;
    }

    .sp-label {
        display: none;
    }

    .sp-line {
        min-width: 22px;
    }
}
