:root {
    /* Brand Colors provided by USER */
    --bg-primary: #0B1121;
    --accent: #00F2FE;
    --brand-base: #1E40AF;
    --cta: #C084FC;
    
    /* Derived & Utility Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(11, 17, 33, 0.65);
    --glass-border: rgba(0, 242, 254, 0.15);
    --input-bg: rgba(0, 0, 0, 0.3);
    --input-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle texture overlaid on background */
    background-image: radial-gradient(circle at top left, rgba(30, 64, 175, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at bottom right, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
}

.hero-title {
    /* Ensure title uses Outfit as it's english */
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem; /* slightly smaller for better mobile fit */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 8px;
}

/* Background Animated Orbs */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-base);
    top: -10%;
    left: -20%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--cta);
    bottom: -20%;
    right: -10%;
    animation-delay: -5s;
    opacity: 0.25;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 30%;
    left: 40%;
    animation-duration: 20s;
    animation-delay: -10s;
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 50px) scale(1.1); }
    100% { transform: translate(-40px, 30px) scale(0.9); }
}

/* Landing Layout */
.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 24px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.badge {
    display: inline-block;
    align-self: flex-start;
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
}

.highlight {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 242, 254, 0.3));
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 540px;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 16px;
    transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Form Section */
.form-section {
    display: flex;
    justify-content: center;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.glass-card {
    width: 100%;
    max-width: 480px;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 50px 40px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.form-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Form Inputs */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.input-group input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 16px;
    padding: 22px 20px 14px 20px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    z-index: 2;
}

.input-group label {
    position: absolute;
    inset-inline-start: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 3;
    font-weight: 600;
}

.input-glow {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: var(--accent);
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
    z-index: 1;
}

.input-group input:focus,
.input-group input:not(:placeholder-shown) {
    padding-top: 26px;
    padding-bottom: 10px;
    border-color: rgba(0, 242, 254, 0.5);
    background: rgba(0, 0, 0, 0.4);
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
    top: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}

.input-group input:focus ~ .input-glow {
    opacity: 0.15;
}

/* Call to Action Button */
.cta-button {
    background: linear-gradient(135deg, var(--cta), #9333ea);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 20px;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(192, 132, 252, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(192, 132, 252, 0.6);
}

.cta-button:active {
    transform: translateY(1px);
    box-shadow: 0 5px 15px -5px rgba(192, 132, 252, 0.5);
}

.cta-button .btn-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.2s;
}

.btn-glow {
    position: absolute;
    top: 0;
    inset-inline-start: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    z-index: 1;
    animation: shine 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes shine {
    0% { inset-inline-start: -100%; }
    20% { inset-inline-start: 200%; }
    100% { inset-inline-start: 200%; }
}

.cta-button.loading {
    opacity: 0.9;
    cursor: not-allowed;
    transform: none;
}

.cta-button.loading .btn-text {
    opacity: 0;
}

.cta-button.loading .spinner {
    display: block;
}

.terms {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: -10px;
}

/* Spinner */
.spinner {
    position: absolute;
    width: 26px;
    height: 26px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    z-index: 2;
}

.spinner.hidden {
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 20px 0;
}

.success-message.hidden {
    display: none;
}

.success-message.visible {
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 50%;
    margin-bottom: 24px;
    position: relative;
    margin-inline: auto;
}

.success-icon-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 242, 254, 0.3);
    animation: spinRotate 10s linear infinite;
}

@keyframes spinRotate {
    to { transform: rotate(360deg); }
}

.success-icon {
    width: 40px;
    height: 40px;
    fill: var(--accent);
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 800;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive and Mobile Optimizations */
@media (max-width: 1024px) {
    .landing-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
    
    .hero-section {
        align-items: center;
        text-align: center;
    }
    
    .badge {
        align-self: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .features-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 20px 15px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .glass-card {
        padding: 30px 20px;
        border-radius: 24px;
    }

    .form-title {
        font-size: 1.8rem;
    }

    .input-group input {
        padding: 20px 16px 12px 16px;
    }

    .cta-button {
        padding: 16px;
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
