/* =============================================
   Apex Capital — Login Page Styles
   File: css/login.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Rajdhani:wght@500;700&display=swap');

* { box-sizing: border-box; }

/* ══════════════════════════════════════════
   PAGE BACKGROUND
══════════════════════════════════════════ */
.login-section {
    min-height: 100vh;
    background: #040d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 40px 80px;   /* ✅ top 130px — header height sathi gap */
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* ══════════════════════════════════════════
   ANIMATED GRID BACKGROUND
══════════════════════════════════════════ */
.login-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,213,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,213,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

@keyframes gridMove {
    0%   { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* ══════════════════════════════════════════
   FLOATING GLOWING ORBS
══════════════════════════════════════════ */
.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

.login-orb-1 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #00ffd5, transparent 70%);
    top: -120px; right: -80px;
    animation: orbFloat1 9s ease-in-out infinite;
}

.login-orb-2 {
    width: 350px; height: 350px;
    background: radial-gradient(circle, #0066ff, transparent 70%);
    bottom: -100px; left: -80px;
    animation: orbFloat2 11s ease-in-out infinite;
}

.login-orb-3 {
    width: 200px; height: 200px;
    background: radial-gradient(circle, #7b2fff, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 7s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-30px, 40px) scale(1.1); }
    66%       { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(40px, -50px) scale(1.15); }
}
@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.35; }
    50%       { transform: translate(-50%, -55%) scale(1.2); opacity: 0.2; }
}

/* ══════════════════════════════════════════
   FLOATING PARTICLES  (JS adds .login-particle spans)
══════════════════════════════════════════ */
.login-particle {
    position: absolute;
    border-radius: 50%;
    background: #00ffd5;
    opacity: 0;
    pointer-events: none;
    z-index: 0;
    animation: particleRise linear infinite;
}

@keyframes particleRise {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.2; }
    100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

/* ══════════════════════════════════════════
   ANIMATED FALLING LINES  (JS adds .login-line spans)
══════════════════════════════════════════ */
.login-line {
    position: absolute;
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(0,255,213,0.4), transparent);
    animation: lineFall linear infinite;
    top: -140px;
    z-index: 0;
}

@keyframes lineFall {
    0%   { transform: translateY(-140px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.5; }
    100% { transform: translateY(110vh); opacity: 0; }
}

/* ══════════════════════════════════════════
   MAIN WRAPPER
══════════════════════════════════════════ */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    border: 1px solid rgba(0,255,213,0.12);
    box-shadow:
        0 0 0 1px rgba(0,255,213,0.05),
        0 40px 100px rgba(0,0,0,0.6),
        inset 0 0 60px rgba(0,255,213,0.02);
    animation: wrapperFadeIn 0.8s ease forwards;
}

@keyframes wrapperFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   LEFT PANEL — Branding
══════════════════════════════════════════ */
.login-left {
    flex: 1;
    background: linear-gradient(145deg, #061222 0%, #0a2240 50%, #061222 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
    position: relative;
    overflow: hidden;
}

/* Rotating rings */
.login-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%; left: 50%;
    pointer-events: none;
    border: 1px solid rgba(0,255,213,0.1);
}
.login-ring-1 {
    width: 260px; height: 260px;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite;
}
.login-ring-2 {
    width: 380px; height: 380px;
    border-color: rgba(0,198,255,0.07);
    transform: translate(-50%, -50%);
    animation: ringRotate 30s linear infinite reverse;
}
.login-ring-3 {
    width: 500px; height: 500px;
    border-color: rgba(123,47,255,0.05);
    transform: translate(-50%, -50%);
    animation: ringRotate 45s linear infinite;
}

/* Glowing dot on ring-1 */
.login-ring-1::after {
    content: '';
    position: absolute;
    width: 6px; height: 6px;
    background: #00ffd5;
    border-radius: 50%;
    top: -3px; left: calc(50% - 3px);
    box-shadow: 0 0 10px #00ffd5, 0 0 20px #00ffd5;
}
.login-ring-2::after {
    content: '';
    position: absolute;
    width: 5px; height: 5px;
    background: #00c6ff;
    border-radius: 50%;
    bottom: -2.5px; left: calc(50% - 2.5px);
    box-shadow: 0 0 8px #00c6ff;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-brand-logo {
    width: 90px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    animation: logoPulse 3s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(0,255,213,0.4)); }
    50%       { filter: drop-shadow(0 0 22px rgba(0,255,213,0.85)); }
}

.login-brand-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.login-brand-divider {
    width: 60px; height: 2px;
    background: linear-gradient(90deg, #00ffd5, #00c6ff);
    margin: 14px auto 16px;
    border-radius: 2px;
    position: relative;
    z-index: 1;
    animation: dividerGlow 2s ease-in-out infinite alternate;
}
@keyframes dividerGlow {
    from { box-shadow: 0 0 6px rgba(0,255,213,0.4); }
    to   { box-shadow: 0 0 20px rgba(0,255,213,0.9), 0 0 35px rgba(0,198,255,0.5); }
}

.login-brand-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-align: center;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 210px;
}

.login-brand-stats {
    display: flex;
    gap: 28px;
    margin-top: 32px;
    position: relative;
    z-index: 1;
}

.login-stat { text-align: center; opacity: 0; animation: statFadeIn 0.6s ease forwards; }
.login-stat:nth-child(1) { animation-delay: 0.4s; }
.login-stat:nth-child(2) { animation-delay: 0.6s; }
.login-stat:nth-child(3) { animation-delay: 0.8s; }

@keyframes statFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #00ffd5;
    text-shadow: 0 0 12px rgba(0,255,213,0.5);
}
.login-stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

/* ══════════════════════════════════════════
   RIGHT PANEL — Form
══════════════════════════════════════════ */
.login-right {
    flex: 1;
    background: rgba(4, 13, 26, 0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 48px;
    position: relative;
}

/* Subtle scanline */
.login-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,255,213,0.008) 2px,
        rgba(0,255,213,0.008) 4px
    );
    pointer-events: none;
    z-index: 0;
}

.login-form-header {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: formSlideIn 0.6s 0.3s ease both;
}
@keyframes formSlideIn {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.login-form-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    margin-bottom: 6px;
}
.login-form-header p {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
}

/* ── Form group ── */
.lf-group {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: formSlideIn 0.5s ease forwards;
}
.lf-group:nth-child(1) { animation-delay: 0.45s; }
.lf-group:nth-child(2) { animation-delay: 0.6s; }

.lf-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(0,255,213,0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.lf-input-wrap { position: relative; display: flex; align-items: center; }

.lf-icon {
    position: absolute;
    left: 14px;
    color: rgba(0,255,213,0.4);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
    transition: color 0.3s;
}

.lf-input {
    width: 100%;
    padding: 13px 16px 13px 40px;
    background: rgba(0,255,213,0.03);
    border: 1px solid rgba(0,255,213,0.12);
    border-radius: 10px;
    color: #e0fff8;
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}
.lf-input::placeholder { color: rgba(255,255,255,0.18); }
.lf-input:focus {
    border-color: rgba(0,255,213,0.5);
    background: rgba(0,255,213,0.05);
    box-shadow: 0 0 0 3px rgba(0,255,213,0.08), 0 0 20px rgba(0,255,213,0.05);
}
.lf-input-wrap:focus-within .lf-icon { color: #00ffd5; }

.lf-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    transition: color 0.2s;
    z-index: 1;
}
.lf-eye-btn:hover { color: #00ffd5; }

/* ══════════════════════════════════════════
   SUBMIT BUTTON — shimmer sweep
══════════════════════════════════════════ */
.lf-btn-wrap {
    width: 100%;
    position: relative;
    z-index: 1;
    margin-top: 10px;
    opacity: 0;
    animation: formSlideIn 0.5s 0.75s ease forwards;
}

.lf-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #00ffd5 0%, #00c6ff 50%, #00ffd5 100%);
    background-size: 200% auto;
    color: #021a2e;
    font-weight: 700;
    font-size: 15px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: shimmerBtn 3s linear infinite;
    position: relative;
    overflow: hidden;
}
@keyframes shimmerBtn {
    0%   { background-position: 200% center; }
    100% { background-position: -200% center; }
}
.lf-btn::after {
    content: '';
    position: absolute;
    top: -50%; left: -60%;
    width: 40%; height: 200%;
    background: rgba(255,255,255,0.25);
    transform: skewX(-20deg);
    animation: btnShine 4s ease-in-out infinite;
}
@keyframes btnShine {
    0%   { left: -60%; opacity: 0; }
    20%  { opacity: 1; }
    40%  { left: 120%; opacity: 0; }
    100% { left: 120%; opacity: 0; }
}
.lf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,255,213,0.35), 0 0 60px rgba(0,255,213,0.1);
}
.lf-btn:active { transform: translateY(0); }

/* ── Message ── */
.lf-message {
    margin-top: 14px;
    width: 100%;
    text-align: center;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* ── Register link ── */
.lf-register-link {
    margin-top: 22px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: formSlideIn 0.5s 0.9s ease forwards;
}
.lf-register-link a {
    color: #00ffd5;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
    position: relative;
}
.lf-register-link a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 0; height: 1px;
    background: #00ffd5;
    transition: width 0.3s;
}
.lf-register-link a:hover::after { width: 100%; }

/* ── Forgot password link ── */
.lf-forgot-link {
    font-size: 11px;
    color: rgba(0,255,213,0.55);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    white-space: nowrap;
}
.lf-forgot-link:hover { color: #00ffd5; text-decoration: none; }

/* ══════════════════════════════════════════
   FORGOT PASSWORD MODAL
══════════════════════════════════════════ */
.fp-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4,13,26,0.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.fp-overlay.fp-open { display: flex; animation: acFadeIn 0.25s ease; }

.fp-modal {
    background: #07121f;
    border: 1px solid rgba(0,255,213,0.18);
    border-radius: 20px;
    width: 92vw;
    max-width: 400px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,255,213,0.06);
    animation: acScaleUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

.fp-header {
    background: linear-gradient(135deg, #061222, #0a2240, #061222);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(0,255,213,0.08);
}

.fp-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(0,255,213,0.1);
    border: 1px solid rgba(0,255,213,0.3);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    animation: logoPulse 3s ease-in-out infinite;
}
.fp-icon-wrap i { font-size: 20px; color: #00ffd5; }

.fp-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px; font-weight: 700;
    color: #fff; margin: 0 0 6px;
    letter-spacing: 0.5px;
}
.fp-subtitle { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; }

.fp-close {
    position: absolute; top: 12px; right: 12px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6);
    font-size: 16px; line-height: 28px; text-align: center;
    cursor: pointer; transition: all 0.2s;
}
.fp-close:hover { background: rgba(220,50,50,0.8); color: #fff; border-color: transparent; }

.fp-body { padding: 24px; }

.fp-field { margin-bottom: 14px; }

.fp-label {
    display: block; font-size: 11px; font-weight: 600;
    color: rgba(0,255,213,0.55); text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 7px;
}
.fp-label i { margin-right: 5px; }

.fp-input {
    width: 100%; padding: 12px 14px;
    background: rgba(0,255,213,0.03);
    border: 1px solid rgba(0,255,213,0.12);
    border-radius: 9px; color: #e0fff8;
    font-size: 13px; font-family: 'Outfit', sans-serif;
    outline: none; transition: all 0.3s; box-sizing: border-box;
}
.fp-input::placeholder { color: rgba(255,255,255,0.2); }
.fp-input:focus {
    border-color: rgba(0,255,213,0.45);
    background: rgba(0,255,213,0.05);
    box-shadow: 0 0 0 3px rgba(0,255,213,0.07);
}

.fp-btn {
    width: 100%; padding: 12px; margin-top: 14px;
    border-radius: 9px; border: none;
    background: linear-gradient(90deg, #00ffd5, #00c6ff);
    color: #021a2e; font-weight: 700; font-size: 14px;
    font-family: 'Rajdhani', sans-serif; letter-spacing: 1.5px;
    text-transform: uppercase; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fp-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,255,213,0.3); }
.fp-btn:active { transform: translateY(0); }

.fp-btn-back {
    width: 100%; padding: 10px; margin-top: 8px;
    border-radius: 9px; border: 1px solid rgba(0,255,213,0.2);
    background: transparent; color: rgba(0,255,213,0.6);
    font-size: 13px; cursor: pointer;
    transition: all 0.2s; font-family: 'Outfit', sans-serif;
}
.fp-btn-back:hover { background: rgba(0,255,213,0.05); color: #00ffd5; }

.fp-msg { min-height: 18px; margin-top: 8px; }
.fp-err {
    font-size: 12px; color: #ff6b6b;
    background: rgba(255,60,60,0.08);
    border-radius: 6px; padding: 4px 8px;
    display: block;
}

.fp-verified-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(0,255,213,0.07);
    border: 1px solid rgba(0,255,213,0.2);
    border-radius: 8px; padding: 10px 14px;
    margin-bottom: 16px; font-size: 13px;
    color: #00ffd5;
}
.fp-verified-badge i { font-size: 16px; }

.fp-success-icon { margin: 10px auto 16px; display: flex; justify-content: center; }
.fp-success-msg  { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.fp-success-sub  { font-size: 13px; color: rgba(255,255,255,0.4); margin: 0 0 20px; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .login-left  { display: none; }
    .login-wrapper { max-width: 420px; border-radius: 16px; }
    .login-right { padding: 40px 28px; }
}

/* ══════════════════════════════════════════════════════════
   REGISTRATION PAGE STYLES
   .reg-section, .reg-wrapper, .reg-left, .reg-right, .rf-*
══════════════════════════════════════════════════════════ */

/* ── Page section ── */
.reg-section {
    min-height: 100vh;
    background: #040d1a;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 130px 40px 80px;
    position: relative;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
}

/* Same animated grid as login */
.reg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,255,213,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,213,0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
}

/* ── Two-panel wrapper ── */
.reg-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 620px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    margin: 0 auto;
    border: 1px solid rgba(0,255,213,0.12);
    box-shadow:
        0 0 0 1px rgba(0,255,213,0.05),
        0 40px 100px rgba(0,0,0,0.6),
        inset 0 0 60px rgba(0,255,213,0.02);
    animation: wrapperFadeIn 0.8s ease forwards;
}

/* ── Left branding panel ── */
.reg-left {
    width: 340px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #061222 0%, #0a2240 50%, #061222 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 36px;
    position: relative;
    overflow: hidden;
}

/* Reuse same rotating ring classes */
.reg-left .login-ring   { position: absolute; border-radius: 50%; top: 50%; left: 50%; pointer-events: none; border: 1px solid rgba(0,255,213,0.1); }
.reg-left .login-ring-1 { width: 260px; height: 260px; transform: translate(-50%,-50%); animation: ringRotate 20s linear infinite; }
.reg-left .login-ring-2 { width: 380px; height: 380px; border-color: rgba(0,198,255,0.07); transform: translate(-50%,-50%); animation: ringRotate 30s linear infinite reverse; }
.reg-left .login-ring-3 { width: 500px; height: 500px; border-color: rgba(123,47,255,0.05); transform: translate(-50%,-50%); animation: ringRotate 45s linear infinite; }
.reg-left .login-ring-1::after { content:''; position:absolute; width:6px; height:6px; background:#00ffd5; border-radius:50%; top:-3px; left:calc(50% - 3px); box-shadow:0 0 10px #00ffd5,0 0 20px #00ffd5; }
.reg-left .login-ring-2::after { content:''; position:absolute; width:5px; height:5px; background:#00c6ff; border-radius:50%; bottom:-2.5px; left:calc(50% - 2.5px); box-shadow:0 0 8px #00c6ff; }

.reg-brand-logo    { width: 80px; margin-bottom: 18px; position: relative; z-index:1; animation: logoPulse 3s ease-in-out infinite; }
.reg-brand-title   { font-family:'Rajdhani',sans-serif; font-size:26px; font-weight:700; color:#fff; letter-spacing:3px; text-transform:uppercase; margin-bottom:6px; position:relative; z-index:1; }
.reg-brand-divider { width:50px; height:2px; background:linear-gradient(90deg,#00ffd5,#00c6ff); margin:12px auto 14px; border-radius:2px; position:relative; z-index:1; animation:dividerGlow 2s ease-in-out infinite alternate; }
.reg-brand-tagline { font-size:12px; color:rgba(255,255,255,0.4); text-align:center; line-height:1.7; position:relative; z-index:1; max-width:200px; }

.reg-brand-steps   { margin-top:28px; position:relative; z-index:1; width:100%; }
.reg-step          { display:flex; align-items:center; gap:12px; margin-bottom:14px; opacity:0; animation:statFadeIn 0.6s ease forwards; }
.reg-step:nth-child(1){animation-delay:0.3s;}
.reg-step:nth-child(2){animation-delay:0.5s;}
.reg-step:nth-child(3){animation-delay:0.7s;}
.reg-step:nth-child(4){animation-delay:0.9s;}

.reg-step-icon { width:32px; height:32px; border-radius:50%; background:rgba(0,255,213,0.1); border:1px solid rgba(0,255,213,0.25); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.reg-step-icon i  { font-size:13px; color:#00ffd5; }
.reg-step-text    { font-size:12px; color:rgba(255,255,255,0.5); line-height:1.5; }
.reg-step-text strong { color:rgba(255,255,255,0.85); display:block; font-size:13px; }

/* ── Right form panel ── */
.reg-right {
    flex: 1;
    background: rgba(4,13,26,0.97);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 44px;
    position: relative;
    overflow-y: auto;
}

/* Scanline */
.reg-right::before {
    content:'';
    position:absolute;
    inset:0;
    background:repeating-linear-gradient(0deg,transparent,transparent 2px,rgba(0,255,213,0.008) 2px,rgba(0,255,213,0.008) 4px);
    pointer-events:none;
    z-index:0;
}

.reg-form-header { text-align:center; margin-bottom:24px; width:100%; position:relative; z-index:1; animation:formSlideIn 0.6s 0.3s ease both; }
.reg-form-header h2 { font-family:'Rajdhani',sans-serif; font-size:26px; font-weight:700; color:#fff; letter-spacing:1px; margin-bottom:5px; }
.reg-form-header p  { font-size:12px; color:rgba(255,255,255,0.35); margin-bottom:0; }

/* ── Referral Notice Box ── */
.reg-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,255,213,0.07), rgba(0,198,255,0.05));
    border: 1px solid rgba(0,255,213,0.25);
    border-left: 3px solid #00ffd5;
    border-radius: 10px;
    text-align: left;
    animation: formSlideIn 0.6s 0.5s ease both;
    opacity: 0;
}

.reg-notice-icon {
    flex-shrink: 0;
    width: 32px; height: 32px;
    background: rgba(0,255,213,0.12);
    border: 1px solid rgba(0,255,213,0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.reg-notice-icon i { font-size: 13px; color: #00ffd5; }

.reg-notice-text {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    line-height: 1.7;
}
.reg-notice-text strong {
    display: block;
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.reg-notice-highlight {
    color: #00ffd5;
    font-weight: 600;
}

.reg-notice-id {
    display: inline-block;
    background: rgba(0,255,213,0.12);
    border: 1px solid rgba(0,255,213,0.35);
    color: #00ffd5;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    letter-spacing: 1px;
    margin: 0 2px;
}

/* ── Two-column form grid ── */
.rf-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; width:100%; position:relative; z-index:1; }
.rf-full  { grid-column: 1 / -1; }

/* ── Form group ── */
.rf-group { display:flex; flex-direction:column; }

.rf-label {
    display:block;
    font-size:10px;
    font-weight:600;
    color:rgba(0,255,213,0.55);
    text-transform:uppercase;
    letter-spacing:1.5px;
    margin-bottom:6px;
}

.rf-input-wrap { position:relative; display:flex; align-items:center; }

.rf-icon {
    position:absolute;
    left:12px;
    color:rgba(0,255,213,0.4);
    font-size:12px;
    pointer-events:none;
    z-index:1;
    transition:color 0.3s;
}

/* Override ASP.NET TextBox to use rf-input style */
.rf-input,
.rf-input-wrap input,
.rf-input-wrap .upperCase,
.rf-input-wrap .input-style-2 {
    width:100% !important;
    padding:11px 12px 11px 36px !important;
    background:rgba(0,255,213,0.03) !important;
    border:1px solid rgba(0,255,213,0.12) !important;
    border-radius:9px !important;
    color:#e0fff8 !important;
    font-size:13px !important;
    font-family:'Outfit',sans-serif !important;
    transition:all 0.3s ease !important;
    outline:none !important;
    box-sizing:border-box !important;
}

.rf-input::placeholder,
.rf-input-wrap input::placeholder { color:rgba(255,255,255,0.18) !important; }

.rf-input:focus,
.rf-input-wrap input:focus,
.rf-input-wrap .input-style-2:focus {
    border-color:rgba(0,255,213,0.5) !important;
    background:rgba(0,255,213,0.05) !important;
    box-shadow:0 0 0 3px rgba(0,255,213,0.08) !important;
}

.rf-input-wrap:focus-within .rf-icon { color:#00ffd5; }

/* Disabled / readonly field */
.rf-input-wrap input[disabled],
.rf-input-wrap input[readonly] {
    opacity:0.45 !important;
    cursor:not-allowed !important;
}

/* ── Validation error message ── */
.rf-val-error {
    font-size: 11px;
    color: #ff6b6b;
    background: rgba(255,60,60,0.08);
    border: 1px solid rgba(255,60,60,0.2);
    border-radius: 6px;
    padding: 5px 10px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: formSlideIn 0.3s ease;
}
.rf-val-error i { font-size: 11px; flex-shrink: 0; }

/* Sponsor name literal */
.rf-sponsor-name { font-size:11px; color:#00ffd5; margin-top:5px; min-height:16px; }

/* Validation error */
.rf-group span[id*="Validator"],
.rf-group span[id*="validator"] {
    font-size:11px !important;
    color:#ff6b6b !important;
    margin-top:4px !important;
    display:block !important;
    background:rgba(255,60,60,0.08) !important;
    border-radius:5px !important;
    padding:3px 7px !important;
}

/* ── Submit button ── */
.rf-btn-wrap { grid-column:1/-1; margin-top:6px; position:relative; z-index:1; }

.rf-btn {
    width:100%;
    padding:13px;
    border-radius:10px;
    border:none;
    background:linear-gradient(90deg,#00ffd5 0%,#00c6ff 50%,#00ffd5 100%);
    background-size:200% auto;
    color:#021a2e;
    font-weight:700;
    font-size:14px;
    font-family:'Rajdhani',sans-serif;
    letter-spacing:2px;
    text-transform:uppercase;
    cursor:pointer;
    transition:transform 0.3s ease, box-shadow 0.3s ease;
    animation:shimmerBtn 3s linear infinite;
    position:relative;
    overflow:hidden;
}
.rf-btn::after { content:''; position:absolute; top:-50%; left:-60%; width:40%; height:200%; background:rgba(255,255,255,0.25); transform:skewX(-20deg); animation:btnShine 4s ease-in-out infinite; }
.rf-btn:hover  { transform:translateY(-2px); box-shadow:0 8px 30px rgba(0,255,213,0.35); }
.rf-btn:active { transform:translateY(0); }

/* Loading state */
.rf-btn-loading {
    opacity: 0.7;
    pointer-events: none;
    background: linear-gradient(90deg, #00b894, #0099cc) !important;
}
.rf-btn-loading::before {
    content: 'Please Wait...';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #021a2e;
}

/* Message / label below form */
.rf-message { grid-column:1/-1; font-size:13px; color:rgba(255,255,255,0.5); text-align:center; position:relative; z-index:1; }

/* Login link */
.rf-login-link { margin-top:16px; font-size:12px; color:rgba(255,255,255,0.3); text-align:center; position:relative; z-index:1; }
.rf-login-link a { color:#00ffd5; text-decoration:none; font-weight:600; }
.rf-login-link a:hover { text-decoration:underline; }

/* ══════════════════════════════════════════
   POPUP CSS  (moved from Registration.aspx inline)
══════════════════════════════════════════ */
.modalBackground {
    background:rgba(10,10,30,0.80) !important;
    z-index:9998 !important;
}

.modalPopup1 {
    background:#ffffff;
    border-radius:20px;
    width:92vw;
    max-width:420px;
    overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,0.45);
    animation:acScaleUp 0.32s cubic-bezier(0.34,1.56,0.64,1);
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    position:fixed !important;
    top:50% !important;
    left:50% !important;
    transform:translate(-50%,-50%) !important;
    z-index:9999 !important;
    margin:0 !important;
}

.ac-popup-header { background:linear-gradient(135deg,#0f2027 0%,#203a43 50%,#2c5364 100%); padding:30px 24px 22px; text-align:center; position:relative; }
.ac-popup-checkmark { width:60px; height:60px; border-radius:50%; background:rgba(0,255,213,0.12); border:2px solid rgba(0,255,213,0.45); display:flex; align-items:center; justify-content:center; margin:0 auto 14px; }
.ac-popup-brand { color:rgba(0,255,213,0.75); font-size:10px; letter-spacing:3.5px; text-transform:uppercase; font-weight:600; margin:0 0 6px; display:block; }
.ac-popup-title { color:#ffffff !important; font-size:21px !important; font-weight:700 !important; margin:0 !important; padding:0 !important; background:none !important; text-align:center; letter-spacing:0.3px; }

.ac-popup-close { position:absolute; top:13px; right:13px; width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.22); color:rgba(255,255,255,0.7); font-size:17px; line-height:30px; text-align:center; cursor:pointer; transition:all 0.2s; display:block; text-decoration:none; }
.ac-popup-close:hover { background:rgba(220,50,50,0.8); color:#fff; border-color:transparent; }

.ac-popup-body { padding:22px 24px 24px; }
.ac-popup-member { text-align:center; margin-bottom:18px; }
.ac-popup-avatar { width:50px; height:50px; border-radius:50%; background:#e8f4fd; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; color:#185FA5; margin:0 auto 10px; border:2px solid #c5d5f5; }
.ac-popup-member-name { font-size:20px; font-weight:700; color:#1a1a2e; margin:0; line-height:1.3; }

.ac-popup-success { background:linear-gradient(135deg,#eaf9f2,#d4f5e9); border:1px solid #9fe1cb; border-radius:12px; padding:13px 16px; text-align:center; margin-bottom:18px; }
.ac-popup-success-label { font-size:10px; color:#0F6E56; letter-spacing:2.5px; text-transform:uppercase; font-weight:700; margin:0 0 4px; display:block; }
.ac-popup-success-msg { font-size:13px; color:#085041; margin:0; line-height:1.6; }

.ac-popup-creds { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:20px; }
.ac-cred-box { border-radius:10px; padding:13px 14px; }
.ac-cred-box.userid  { background:#f0f4ff; border:1px solid #c5d5f5; }
.ac-cred-box.passbox { background:#fff5f5; border:1px solid #f5c5c5; }
.ac-cred-label { font-size:9px; letter-spacing:1.8px; text-transform:uppercase; font-weight:700; margin:0 0 5px; display:block; }
.ac-cred-box.userid  .ac-cred-label { color:#185FA5; }
.ac-cred-box.passbox .ac-cred-label { color:#A32D2D; }
.ac-cred-value { font-size:16px; font-weight:700; margin:0; font-family:'Courier New',Courier,monospace; word-break:break-all; }
.ac-cred-box.userid  .ac-cred-value { color:#0c447c; }
.ac-cred-box.passbox .ac-cred-value { color:#791F1F; }

.ac-popup-btn { width:100%; padding:14px; border-radius:50px; border:none; background:linear-gradient(90deg,#00ffd5,#00c6ff); color:#000000; font-size:15px; font-weight:700; cursor:pointer; letter-spacing:0.4px; transition:opacity 0.2s,transform 0.15s; display:block; }
.ac-popup-btn:hover  { opacity:0.88; transform:scale(1.02); }
.ac-popup-btn:active { transform:scale(0.98); }
.ac-popup-note { text-align:center; font-size:12px; color:#888; margin:11px 0 0; }

@keyframes acFadeIn  { from{opacity:0;} to{opacity:1;} }
@keyframes acScaleUp { from{transform:scale(0.78);opacity:0;} to{transform:scale(1);opacity:1;} }

/* ══════════════════════════════════════════
   RESPONSIVE — REGISTRATION
══════════════════════════════════════════ */
@media (max-width: 900px) {
    .reg-left   { display:none; }
    .reg-wrapper{ max-width:480px; border-radius:16px; }
    .reg-right  { padding:36px 24px; }
    .rf-grid    { grid-template-columns:1fr; }
    .rf-full    { grid-column:1; }
    .rf-btn-wrap{ grid-column:1; }
    .rf-message { grid-column:1; }
}

@media (max-width: 540px) {
    .modalPopup1     { width:94vw !important; border-radius:16px; }
    .ac-popup-header { padding:20px 16px 16px; }
    .ac-popup-body   { padding:16px 16px 18px; }
    .ac-popup-title  { font-size:16px !important; }
    .ac-popup-creds  { grid-template-columns:1fr 1fr; gap:8px; }
    .ac-cred-box     { padding:10px 11px; }
    .ac-cred-value   { font-size:14px; }
    .ac-popup-member-name { font-size:16px; }
    .ac-popup-btn    { padding:12px; font-size:14px; }
}
