/* ===================================================
   register.css — VARify Register Page
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ---- Animated pitch grid ---- */
.pitch-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 50%, #0f0d1a 0%, #0a0a0f 70%);
}
.pitch-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 18s linear infinite;
}
@keyframes gridMove {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* ---- Floating glow orbs ---- */
.orb {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    animation: floatOrb var(--dur) ease-in-out infinite alternate;
}
@keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(var(--tx), var(--ty)) scale(1.15); }
}
.orb:nth-child(1){width:350px;height:350px;background:radial-gradient(circle,#6366f1,transparent 70%);top:-100px;right:-80px;--dur:9s;--tx:-40px;--ty:70px;}
.orb:nth-child(2){width:220px;height:220px;background:radial-gradient(circle,#10b981,transparent 70%);bottom:-60px;left:-60px;--dur:12s;--tx:30px;--ty:-40px;}
.orb:nth-child(3){width:180px;height:180px;background:radial-gradient(circle,#6366f1,transparent 70%);top:45%;left:3%;--dur:7s;--tx:20px;--ty:-30px;}

/* ---- Bouncing football ---- */
.football {
    position: fixed;
    font-size: 2.2rem;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
    filter: drop-shadow(0 0 12px rgba(99,102,241,0.6));
}

/* ---- Card ---- */
.card {
    position: relative;
    z-index: 10;
    background: rgba(36, 36, 36, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 44px 44px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.65), 0 0 0 1px rgba(99,102,241,0.12);
    animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Glowing Border Animation */
.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, rgba(99,102,241,0.8), transparent 40%, transparent 60%, rgba(16,185,129,0.8));
    border-radius: 26px; /* card is 24px + 2px */
    z-index: -1;
    animation: borderGlow 6s linear infinite;
    background-size: 200% 200%;
}
@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Floating Particles ---- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255,255,255,1);
    animation: floatUp var(--duration) linear infinite;
    bottom: -20px;
    left: var(--left);
}
@keyframes floatUp {
    0% { transform: translateY(0) scale(0); opacity: 0; }
    20% { opacity: 1; transform: translateY(-20vh) scale(1); }
    80% { opacity: 1; transform: translateY(-80vh) scale(1); }
    100% { transform: translateY(-105vh) scale(0); opacity: 0; }
}

/* ---- Logo ---- */
.logo { text-align: center; margin-bottom: 30px; }
.logo-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.logo h1 { color: #f3f4f6; font-size: 1.5rem; font-weight: 700; letter-spacing: -0.5px; }
.logo p  { color: #6b7280; font-size: 0.85rem; margin-top: 4px; }

/* ---- Steps ---- */
.steps {
    display: flex; justify-content: center; gap: 6px; margin-bottom: 28px;
}
.step-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
}
.step-dot.active {
    width: 20px; border-radius: 3px;
    background: linear-gradient(90deg, #6366f1, #4f46e5);
}

/* ---- Form ---- */
.form-group { margin-bottom: 16px; }
label {
    display: block;
    color: #9ca3af;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 7px;
}
.input-wrap { position: relative; }
.input-wrap i {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 0.88rem;
    transition: color 0.2s;
}
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 12px 40px 12px 40px;
    color: #f3f4f6;
    font-size: 0.93rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    outline: none;
}
input:focus {
    border-color: #6366f1;
    background: rgba(99,102,241,0.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
}
.input-wrap:focus-within i { color: #6366f1; }

/* ---- Password strength ---- */
.strength-bar {
    height: 3px; border-radius: 2px;
    background: rgba(255,255,255,0.08);
    margin-top: 7px; overflow: hidden;
}
.strength-fill {
    height: 100%; width: 0%;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.strength-label { font-size: 0.72rem; color: #6b7280; margin-top: 3px; }

/* ---- Errors ---- */
.errorlist { list-style: none; margin-top: 6px; }
.errorlist li {
    color: #f87171; font-size: 0.78rem;
    display: flex; align-items: center; gap: 5px;
}
.errorlist li::before { content: '⚠ '; }

/* ---- Messages ---- */
.messages { margin-bottom: 18px; }
.message {
    padding: 10px 14px; border-radius: 10px;
    font-size: 0.84rem;
    display: flex; align-items: center; gap: 8px;
}
.message.error { background: rgba(248,113,113,0.15); color: #f87171; border: 1px solid rgba(248,113,113,0.3); }

/* ---- Submit button ---- */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    margin-top: 10px;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    box-shadow: 0 4px 20px rgba(99,102,241,0.4);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(99,102,241,0.5); filter: brightness(1.06); }
.btn-submit:active { transform: translateY(0); }

/* ---- Footer link ---- */
.footer-link { text-align: center; margin-top: 22px; color: #6b7280; font-size: 0.84rem; }
.footer-link a { color: #6366f1; text-decoration: none; font-weight: 600; }
.footer-link a:hover { text-decoration: underline; }

.divider {
    display: flex; align-items: center; gap: 12px;
    color: #4b5563; font-size: 0.75rem; margin: 20px 0;
}
.divider::before, .divider::after {
    content: ''; flex: 1;
    height: 1px; background: rgba(255,255,255,0.08);
}

/* ---- Eye toggle button ---- */
.eye-btn {
    position: absolute; right: 38px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: #6b7280; cursor: pointer;
    padding: 2px; font-size: 0.88rem;
}
.eye-btn:hover { color: #9ca3af; }
