:root {
    --primary: #FF4D00;
    /* Vibrant orange from reference */
    --primary-light: #ff6a26;
    --primary-dark: #cc3d00;
    --secondary: #0f172a;
    --background: #ffffff;
    --background-alt: #f8fafc;
    --text: #010101;
    /* Deeper black for high contrast */
    --text-muted: #525252;
    --white: #ffffff;
    --off-white: #FCF9F6;
    /* Slightly warm white for the punchy orange contrast */
    --accent-blue: #3A82B8;
    /* The blue from the "New!" badge */
    --glass: rgba(255, 255, 255, 0.7);
    --border: rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.05em;
    /* Tighter tracking for that premium look */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 12rem 0;
    position: relative;
}

.bg-alt {
    background-color: var(--off-white);
}

/* Typography */
h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2.5rem;
}

h2 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.06em;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.05rem;
    /* Poppins feels a bit larger, so 1.05rem is perfect */
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    /* Poppins weight 400 is very modern and readable */
    letter-spacing: 0.01em;
    /* Slight positive tracking for Poppins increases readability */
    opacity: 0.8;
}

h1 span,
h2 span {
    color: var(--primary);
    -webkit-text-fill-color: initial;
    background: none;
}

.section-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    max-width: 850px;
    line-height: 1.8;
    margin: 1.5rem auto 0;
    /* Centered */
    opacity: 0.6;
    /* Softer for that high-end look */
    font-weight: 300;
    /* Lighter weight for Poppins looks very modern */
    letter-spacing: 0.02em;
}

.section-header {
    margin-bottom: 6rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    border: 1px solid transparent;
    background: none;
    -webkit-appearance: none;
    appearance: none;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 20px -5px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.5);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text);
    background: var(--white);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(249, 115, 22, 0.05);
}

.btn-ghost {
    color: var(--white);
}

.btn-contact {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
    border-radius: 99px;
    padding: 0.6rem 2rem;
    font-size: 0.95rem;
}

.btn-contact:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: none;
}

.btn-outline-white {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 1rem 0;
    background: rgba(255, 77, 0, 0.9);
    /* Primary orange with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#navbar .logo-text {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 8px;
}

/* Hero Section */
#hero {
    position: relative;
    padding: 0;
    background: var(--background);
}

.hero-top {
    position: relative;
    overflow: hidden;
    background-color: var(--primary);
    padding-top: 15rem;
    padding-bottom: 12rem;
    text-align: center;
}

.hero-content-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    /* Wider for full impact */
    margin: 0 auto;
}

#hero h1 {
    font-size: 7.5rem;
    margin-bottom: 2rem;
    line-height: 0.9;
    color: var(--white);
    letter-spacing: -0.06em;
    font-weight: 800;
}

#hero h1 span {
    color: var(--white);
    opacity: 0.8;
}

.hero-desc {
    max-width: 750px;
    margin-bottom: 4rem;
}

.hero-desc p {
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Features & Cards */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.card {
    background: var(--white);
    padding: 4rem 2.5rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-16px) scale(1.01);
    box-shadow: var(--shadow-premium);
    border-color: var(--primary-light);
}

.card-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(244, 63, 94, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.card-icon svg {
    width: 36px;
    height: 36px;
}

/* Process Section */
.process-steps {
    margin-top: 6rem;
    display: grid;
    gap: 1.5rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4rem;
    background: var(--white);
    padding: 3rem 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-soft);
    transform: translateX(10px);
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(249, 115, 22, 0.1);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

/* Eventos Section */
.event-cards {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 5rem;
}

.event-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--white);
    padding: 2.5rem 4rem;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.event-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
    transform: translateY(-5px);
}

.event-date {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
    padding-right: 3rem;
    margin-right: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.event-date span {
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
}

.event-details h3 {
    margin-bottom: 0.5rem;
}

.event-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(249, 115, 22, 0.08);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Campus Section */
.campus-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 8rem;
}

.academy-feature {
    margin-top: 2rem;
}

.academy-feature h4 {
    font-size: 1.25rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.campus-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.stat {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 32px;
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--primary-light);
    transform: translateY(-10px);
}

.stat h4 {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    color: var(--text);
}

/* CTA Section */
.cta-box {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    padding: 8rem 4rem;
    border-radius: 48px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.15) 0%, transparent 40%);
    z-index: 0;
}

.cta-box h2 {
    color: var(--white);
    font-size: 4rem;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.35rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

.cta-box .btn + .btn {
    margin-left: 1rem;
}

/* Footer */
.footer {
    padding: 10rem 0 4rem;
    background: #010101;
    /* Deepest black for premium feel */
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 8rem;
    margin-bottom: 6rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-text {
    font-size: 2rem;
    display: block;
    margin-bottom: 2rem;
    color: var(--white);
}

.footer-tagline {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-5px);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* Spaced out for modern navigation */
    margin-bottom: 2.5rem;
    color: var(--white);
    opacity: 0.9;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1.25rem;
}

.footer-col ul a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 8px;
    /* Modern subtle interaction */
}

.footer-mail {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-mail:hover {
    color: var(--primary);
}

.footer-addr {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.95rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-legal p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 0;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .footer-nav {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-nav {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-col {
        grid-column: span 2;
        margin-top: 2rem;
    }
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Animations */
@keyframes slide-up-reveal {
    0% {
        transform: translateY(80px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in-up {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Specific Hero Animations - Triggered on load or entry */
#hero h1 {
    animation: slide-up-reveal 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero .hero-desc {
    animation: fade-in-up 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

#hero .hero-btns {
    animation: fade-in-up 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* ─── Hero Rocket Scene ──────────────────────────────────────────────────── */
.hero-rocket-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* Ensure text stays above rocket */
.hero-content-centered {
    position: relative;
    z-index: 1;
}

/* ── Star particles ─────────────────────────────────────────────────────── */
.hero-star {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
    opacity: 0;
    animation: star-twinkle 3s ease-in-out 1 both;
}

@keyframes star-twinkle {
    0%   { opacity: 0;   transform: scale(0.4); }
    30%  { opacity: 1;   transform: scale(1.5); }
    70%  { opacity: 0.7; transform: scale(1.2); }
    100% { opacity: 0;   transform: scale(0.4); }
}


/* Enhanced Card Interactions */
.card {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.08);
}

.card-icon {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* Mobile */
@media (max-width: 1024px) {
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 3rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .campus-container {
        grid-template-columns: 1fr;
        gap: 6rem;
    }

    .event-item {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 6rem 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .grid-4,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 3rem 2rem;
        gap: 1.5rem;
    }

    .event-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .event-date {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
    }

    .cta-box {
        padding: 4rem 2rem;
    }

    .cta-box h2 {
        font-size: 2.5rem;
    }
}
/* =============================================
   MODAL CREAR CUENTA
   ============================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: var(--background);
    border-radius: 24px;
    width: 100%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
    transform: translateY(24px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.modal-overlay.is-open .modal-container {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: sans-serif;
}

.modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.modal-header {
    margin-bottom: 2.5rem;
}

.modal-header h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0.65;
}

/* Form Styles */
.registro-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.registro-form .oauth-divider {
    margin-top: -0.75rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    margin-bottom: 0;
    opacity: 1;
}

.form-group label .required {
    color: var(--primary);
    margin-left: 2px;
}

.form-group label .optional {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
    margin-left: 4px;
}

.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--background);
    transition: var(--transition);
    outline: none;
}

.form-group textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.form-group textarea::placeholder,
.form-group input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Select */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--background);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
}

.select-wrapper select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.select-arrow {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    width: 100%;
    height: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1.5px dashed var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--background-alt);
}

.file-upload-label:hover,
.file-upload-wrapper:focus-within .file-upload-label {
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.04);
}

.file-upload-label svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.file-upload-label span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.file-upload-label em {
    font-style: normal;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-left: auto;
    opacity: 0.6;
}

.file-upload-label.has-file {
    border-style: solid;
    border-color: var(--primary);
    background: rgba(255, 77, 0, 0.06);
}

.file-upload-label.has-file span {
    color: var(--primary);
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 3rem;
}

.toggle-password {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--primary);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

/* Submit button */
.btn-submit-form {
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.form-terms {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.5;
    margin-bottom: 0;
}

.form-terms a {
    color: var(--primary);
    text-decoration: underline;
}

/* ── OAuth Buttons ───────────────────────────────────────────────────── */
.oauth-divider {
    display: flex;
    align-items: center;
    margin: 0.75rem 0;
    text-align: center;
}
.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.oauth-divider span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.oauth-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.btn-oauth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}
.btn-oauth:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.06);
}
.btn-oauth:active {
    transform: scale(0.95);
}
.btn-oauth svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.btn-oauth-google:hover {
    color: #4285F4;
    border-color: rgba(66,133,244,0.4);
    background: rgba(66,133,244,0.08);
}

.btn-oauth-linkedin {
    color: #0a66c2;
}
.btn-oauth-linkedin:hover {
    color: #0a66c2;
    border-color: rgba(10,102,194,0.4);
    background: rgba(10,102,194,0.08);
}

.btn-oauth-github {
    color: #171515;
}
.btn-oauth-github:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Responsive modal */
@media (max-width: 640px) {
    .modal-container {
        padding: 2rem 1.5rem;
        border-radius: 16px;
        max-height: 85vh;
    }

    .modal-header h2 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
