/* =============================================================
   FILE: assets/css/register.css
   PURPOSE: Register page layout — inherits ring + input styles
            from login.css, adds the wider two-column form card.

   FIXES APPLIED:
   1. cursor:none restored (was missing, causing invisible cursor)
   2. Card max-width set so it fits on any screen without overflow
   3. Scrollable stage so tall form works on small screens
   4. Two-column rows collapse to single column on mobile
   ============================================================= */

/* ── Import everything from login.css ──
   The register page reuses: .login-bg, .hero-grid, .login-center-glow,
   .rings-wrap, .ring-*, .login-logo, .login-title, .login-sub,
   .login-error, .login-input-wrap, .login-input, .login-input-icon,
   .login-eye-btn, .login-submit-btn, .login-links-row, .login-link,
   .login-logo-name, .login-logo-dot, .login-back
   So we only need to define register-specific additions here.
*/
@import url("login.css");


/* ─────────────────────────────────────────────────────────────
   PAGE BASE — register specific overrides
   ───────────────────────────────────────────────────────────── */
.register-page {
    min-height: 100vh;
    background: #080B10;
    /* CURSOR FIX: must be none so JS cursor elements appear */
    cursor: none;
    overflow-x: hidden;
}

/* Restore cursor:none on all interactive elements */
.register-page a,
.register-page button,
.register-page input,
.register-page label {
    cursor: none;
}


/* ─────────────────────────────────────────────────────────────
   REGISTER STAGE
   Unlike login (which is purely centered), register needs to
   scroll on small screens because the form is taller.
   Uses min-height instead of fixed height so it expands.
   ───────────────────────────────────────────────────────────── */
.register-stage {
    position: relative;
    z-index: 1;
    /* Vertically center on large screens, top-align + scroll on small */
    min-height: 100vh;
    display: flex;
    align-items: flex-start;        /* allow scrolling from top */
    justify-content: center;
    padding: 60px 20px 60px;        /* generous top/bottom breathing room */
}

/* On tall enough screens, center the card vertically */
@media (min-height: 800px) {
    .register-stage {
        align-items: center;
    }
}


/* ─────────────────────────────────────────────────────────────
   REGISTER CARD
   Wider than the login card to fit the two-column field rows.
   Max-width of 680px keeps it readable without stretching.
   ───────────────────────────────────────────────────────────── */
.register-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 680px;               /* Key fix: was too wide before */
    background: rgba(13, 18, 28, 0.85);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 48px 44px;             /* Comfortable internal padding */
    box-shadow:
        0 0 0 1px rgba(0,245,212,0.06),
        0 24px 64px rgba(0,0,0,0.7),
        inset 0 1px 0 rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    animation: cardReveal 0.7s cubic-bezier(0.34,1.56,0.64,1) both;
    animation-delay: 0.2s;
}


/* ─────────────────────────────────────────────────────────────
   REGISTER FORM
   ───────────────────────────────────────────────────────────── */
.register-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 0;
}

/* Two-column row */
.reg-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Single field inside a row */
.reg-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Label */
.reg-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(170,180,192,0.9);
    letter-spacing: 0.02em;
}

/* Required asterisk */
.reg-req { color: #00F5D4; }

/* Hint text inside label */
.reg-hint {
    font-weight: 400;
    font-size: 0.76rem;
    color: rgba(100,115,130,0.8);
}

/* Password strength bar */
.pwd-strength-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.pwd-strength-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    overflow: hidden;
}

.pwd-strength-fill {
    height: 100%;
    border-radius: 99px;
    width: 0;
    transition: width 0.4s ease, background 0.4s ease;
}

.pwd-strength-label {
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* Terms checkbox row */
.reg-terms-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(170,180,192,0.75);
    line-height: 1.6;
    width: 100%;
    margin-top: 4px;
}

.reg-terms-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #00F5D4;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.reg-terms-label a {
    color: #00F5D4;
    transition: opacity 0.2s;
}
.reg-terms-label a:hover { opacity: 0.7; }


/* ─────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────────────────────── */

/* Tablet: still two columns but tighter */
@media (max-width: 720px) {
    .register-card {
        padding: 36px 28px;
        max-width: 540px;
    }
}

/* Mobile: single column, full width inputs */
@media (max-width: 560px) {
    .register-stage {
        padding: 40px 16px 48px;
        align-items: flex-start;
    }

    .register-card {
        padding: 32px 20px;
        border-radius: 20px;
        max-width: 100%;
    }

    /* Stack the two-column rows into single column */
    .reg-row {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Slightly smaller title on very small screens */
    .login-title { font-size: 1.35rem; }

    /* Scale down rings on mobile */
    .ring-1 { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
    .ring-2 { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
    .ring-3 { width: 380px; height: 380px; margin: -190px 0 0 -190px; }
    .ring-4 { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
}

/* Very small phones */
@media (max-width: 380px) {
    .register-card { padding: 28px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .ring        { animation: none !important; }
    .register-card { animation: none !important; }
}