/* ============================================
   GuruPay - Auth Pages White Premium Theme
   Matches the landing page's white/lime-green premium look
   ============================================ */

:root {
    --primary: #C6E547;
    --primary-dark: #A8C42A;
    --primary-light: #D9EF7A;
    --primary-glow: rgba(198, 229, 71, 0.35);
    --dark: #0B3D2E;
    --dark-soft: #0E4D3A;
    --light-bg: #F8FAF7;
    --border-soft: rgba(11, 61, 46, 0.08);
    --text-muted: rgba(11, 61, 46, 0.55);
    --danger: #EF4444;
    --success: #10B981;
}

* { box-sizing: border-box; }

body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(198,229,71,0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(11,61,46,0.05) 0%, transparent 45%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
    overflow-x: hidden;
}

/* Soft floating particles - subtle lime dots instead of dark theme's glowing orbs */
.particles-container { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.particle {
    position: absolute;
    width: 8px; height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.25;
    animation: floatParticle 14s infinite ease-in-out;
}
.particle:nth-child(1) { top: 8%;  left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 22%; left: 82%; animation-delay: 1.2s; }
.particle:nth-child(3) { top: 65%; left: 5%;  animation-delay: 2.4s; }
.particle:nth-child(4) { top: 78%; left: 88%; animation-delay: 3.6s; }
.particle:nth-child(5) { top: 40%; left: 92%; animation-delay: 4.8s; }
.particle:nth-child(6) { top: 55%; left: 45%; animation-delay: 6s; }
.particle:nth-child(7) { top: 12%; left: 55%; animation-delay: 7.2s; }
.particle:nth-child(8) { top: 88%; left: 30%; animation-delay: 8.4s; }
.particle:nth-child(9) { top: 30%; left: 25%; animation-delay: 9.6s; }
.particle:nth-child(10){ top: 68%; left: 70%; animation-delay: 10.8s; }
.particle:nth-child(11){ top: 5%;  left: 40%; animation-delay: 12s; }
.particle:nth-child(12){ top: 95%; left: 60%; animation-delay: 13.2s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.15; }
    50% { transform: translateY(-24px) scale(1.3); opacity: 0.4; }
}

.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 44px 40px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 60px rgba(11,61,46,0.08), 0 2px 8px rgba(11,61,46,0.04);
    border: 1px solid var(--border-soft);
}

/* Brand */
.auth-brand { text-align: center; margin-bottom: 28px; }
.brand-icon, .otp-illustration {
    width: 56px; height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.brand-icon svg, .otp-illustration svg { width: 26px; height: 26px; color: var(--dark); stroke-width: 2.2; }
.auth-brand h1 { font-size: 24px; font-weight: 800; color: var(--dark); margin: 0 0 6px; }
.auth-brand h1 span { color: var(--primary-dark); }
.auth-brand p { font-size: 14px; color: var(--text-muted); margin: 0; }

.mobile-display {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--light-bg);
    border: 1px solid var(--border-soft);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}
.mobile-display svg { width: 16px; height: 16px; color: var(--primary-dark); }

/* Alerts */
.auth-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    margin-bottom: 20px;
    line-height: 1.4;
}
.auth-alert.alert-danger { background: rgba(239,68,68,0.08); color: #B91C1C; border: 1px solid rgba(239,68,68,0.15); }
.auth-alert.alert-success { background: rgba(16,185,129,0.08); color: #047857; border: 1px solid rgba(16,185,129,0.15); }

/* Form */
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 7px;
}
.input-wrapper { position: relative; }
.form-control {
    width: 100%;
    padding: 13px 16px 13px 44px;
    border: 1.5px solid var(--border-soft);
    border-radius: 12px;
    font-size: 14.5px;
    color: var(--dark);
    background: var(--light-bg);
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    outline: none;
}
.form-control.with-prefix { padding-left: 68px; }
.form-control:focus { border-color: var(--primary-dark); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.form-control.is-invalid { border-color: var(--danger); background: rgba(239,68,68,0.03); }
.form-control.is-valid { border-color: var(--success); }
.input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); display: flex;
}
.input-icon svg { width: 17px; height: 17px; }
.mobile-prefix {
    position: absolute; left: 40px; top: 50%; transform: translateY(-50%);
    font-size: 14px; font-weight: 600; color: var(--dark);
    border-right: 1.5px solid var(--border-soft); padding-right: 10px;
}
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 4px; display: flex;
}
.password-toggle svg { width: 17px; height: 17px; }
.field-error { display: none; color: var(--danger); font-size: 12px; margin-top: 6px; }
.field-error.show { display: block; }
.text-hint { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

/* Password strength */
#passwordStrength, .password-strength { display: none; margin-top: 8px; }
.strength-bar { height: 4px; border-radius: 2px; background: var(--border-soft); overflow: hidden; }
.strength-bar-fill { height: 4px; border-radius: 2px; position: relative; width: 0; transition: width 0.3s ease, background 0.3s ease; }
.strength-bar-fill.strength-weak   { background: var(--danger); width: 25%; }
.strength-bar-fill.strength-fair   { background: #F59E0B; width: 50%; }
.strength-bar-fill.strength-good   { background: #3B82F6; width: 75%; }
.strength-bar-fill.strength-strong { background: var(--success); width: 100%; }
.strength-text { font-size: 11.5px; margin-top: 5px; display: block; font-weight: 600; }
.strength-text.text-weak { color: var(--danger); }
.strength-text.text-fair { color: #F59E0B; }
.strength-text.text-good { color: #3B82F6; }
.strength-text.text-strong { color: var(--success); }

/* Row / checkbox */
.form-row-between { display: flex; justify-content: space-between; align-items: center; margin-top: -6px; }
.auth-checkbox { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dark); cursor: pointer; }
.auth-checkbox input { accent-color: var(--primary-dark); width: 15px; height: 15px; }
.forgot-link { font-size: 13px; color: var(--primary-dark); font-weight: 600; text-decoration: none; }
.forgot-link:hover { text-decoration: underline; }

/* Buttons */
.btn-auth-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 8px 20px var(--primary-glow);
}
.btn-auth-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--primary-glow); }
.btn-auth-primary:active { transform: translateY(0); }
.btn-auth-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.btn-auth-primary .btn-spinner { display: none; }
.btn-auth-primary.loading .btn-text { visibility: hidden; }
.btn-auth-primary.loading .btn-spinner {
    display: block; position: absolute; left: 50%; top: 50%;
    width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 2.5px solid rgba(11,61,46,0.25); border-top-color: var(--dark);
    border-radius: 50%; animation: btnSpin 0.7s linear infinite;
}
@keyframes btnSpin { to { transform: rotate(360deg); } }

.btn-outline-auth {
    background: #fff; color: var(--dark); border: 1.5px solid var(--border-soft);
    padding: 12px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.btn-outline-auth:hover { border-color: var(--primary-dark); }

/* Divider */
.auth-divider { text-align: center; margin: 22px 0; position: relative; }
.auth-divider::before {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: var(--border-soft);
}
.auth-divider span { position: relative; background: #fff; padding: 0 14px; font-size: 12.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* Footer */
.auth-footer { text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* Features */
.auth-features { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.feature-tag {
    display: flex; align-items: center; gap: 5px;
    background: var(--light-bg); border: 1px solid var(--border-soft);
    color: var(--dark); font-size: 11.5px; font-weight: 600;
    padding: 6px 12px; border-radius: 20px;
}
.feature-tag svg { width: 13px; height: 13px; color: var(--primary-dark); }

/* Secure badge */
.secure-badge {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 18px; font-size: 11.5px; color: var(--text-muted); font-weight: 500;
}
.secure-badge svg { width: 13px; height: 13px; color: var(--success); }

/* Step indicator (forgot password flow) */
.step-indicator { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 28px; }
.step-dot {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--light-bg); border: 2px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: var(--text-muted);
    transition: all 0.3s ease;
}
.step-dot.active { border-color: var(--primary-dark); background: var(--primary); color: var(--dark); }
.step-dot.completed { border-color: var(--success); background: var(--success); color: #fff; }
.step-connector { width: 32px; height: 2px; background: var(--border-soft); transition: background 0.3s ease; }
.step-connector.active { background: var(--primary-dark); }

/* Step sections (forgot-password multi-step flow) */
.step-section { display: none; }
.step-section.active { display: block; }

/* OTP boxes */
.otp-input-group { display: flex; gap: 10px; justify-content: center; margin: 8px 0 4px; }
.otp-box {
    width: 46px; height: 54px;
    text-align: center; font-size: 22px; font-weight: 700;
    border: 1.5px solid var(--border-soft); border-radius: 12px;
    background: var(--light-bg); color: var(--dark);
    outline: none; transition: all 0.2s ease;
}
.otp-box:focus { border-color: var(--primary-dark); background: #fff; box-shadow: 0 0 0 4px var(--primary-glow); }
.otp-box.filled { border-color: var(--primary-dark); background: #fff; }

.otp-timer { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 10px; }
.otp-timer .timer-text { color: var(--text-muted); }
.otp-timer .resend-btn { color: var(--primary-dark); font-weight: 700; background: none; border: none; cursor: pointer; font-size: 13px; padding: 0; }

/* Responsive */
@media (max-width: 480px) {
    .auth-card { padding: 32px 24px; border-radius: 18px; }
    .otp-box { width: 40px; height: 48px; font-size: 19px; }
}
