:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --accent-green: #0aff0a;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-header: 'Orbitron', sans-serif;
    --font-subheader: 'Anta', sans-serif;
    --font-body: 'Sansation', sans-serif;
}

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

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-subheader);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h1 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

h2 {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    border-bottom: 2px solid var(--accent-cyan);
    display: inline-block;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2a1a2a 0%, #070707 70%);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(0, 243, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 243, 255, 0.06) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-purple);
    margin-top: -1rem;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top:1rem;
}

.btn-glow {
    background: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    padding: 1rem 2rem;
    font-family: var(--font-subheader);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-glow:hover {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-cyan);
}

/* Sections */
section {
    padding: 6rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.1);
    border-color: var(--accent-cyan);
}

.card h3 {
    color: var(--accent-purple);
    font-size: 1.5rem;
}

.highlight {
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    background: #000;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

.pulse-text {
    animation: pulse 3s infinite;
}

/* Code block styling */
pre {
    background: #111;
    padding: 1.5rem;
    border-radius: 5px;
    border-left: 3px solid var(--accent-cyan);
    overflow-x: auto;
    font-family: 'Consolas', monospace;
    color: #aaffaa;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem; /* Reduced padding for mobile */
        height: auto;       /* Allow content to expand */
        min-height: 100vh;
    }

    h1 {
        font-size: 2.5rem; /* Smaller title on mobile */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-glow {
        display: block;
        margin: 0;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .btn-glow.full-width {
        max-width: 100%;
    }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: all 0.4s ease;
    background: transparent;
}

.main-header.scrolled,
.main-header:not(.home-header) {
    padding: 1rem 2rem;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo {
    font-family: var(--font-header);
    font-size: 1.5rem;
    color: var(--text-color);
    /* Default: Visible */
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Only hide on home page initially */
.main-header.home-header .header-logo {
    opacity: 0;
    transform: translateY(-10px);
}

/* Show on home page when scrolled */
.main-header.home-header.scrolled .header-logo {
    opacity: 1;
    transform: translateY(0);
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-subheader);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--accent-cyan);
}

.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: #000;
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding-top: 6rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        gap: .2rem;
    }

    .nav-links a {
        text-align: left;
        padding: 1.5rem 2rem;
        width: 100%;
        border-bottom: 1px solid rgba(0, 243, 255, 0.06);
    }

    .nav-links a:first-child {
        border-top: 1px solid rgba(0, 243, 255, 0.06);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links.active {
        right: 0;
    }
    
    /* Ensure logo is visible on mobile if needed, or keep behavior */
    .main-header.scrolled .header-logo {
        opacity: 1;
    }
}

/* Page Containers */
.page-container {
    padding-top: 8rem; /* Account for fixed header */
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 4rem;
    min-height: 80vh;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-family: var(--font-subheader);
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Login Specific */
.login-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-intro-panel {
    flex: 1;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    border-right: 1px solid var(--glass-border);
}

.login-intro-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 243, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.intro-content {
    max-width: 600px;
    z-index: 1;
}

.intro-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.intro-lead {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 3rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    color: var(--accent-cyan);
}

.feature-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.feature-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #888;
    line-height: 1.5;
}

.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: radial-gradient(circle at center, #151515 0%, #050505 100%);
    position: relative;
}

.login-card {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 15px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.login-card h2 {
    margin-top: -.5rem;
    
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.login-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.sso-label {
    text-align: center;
    color: #888;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.full-width {
    width: 100%;
    margin: 1rem 0;
    text-align: center;
}

.registration-notice {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.registration-notice .icon {
    color: #ff4444;
    font-size: 1.2rem;
}

.registration-notice p {
    margin: 0;
    font-size: 0.85rem;
    color: #ffaaaa;
    line-height: 1.4;
}

/* Mobile Responsive for Login */
@media (max-width: 992px) {
    .login-split-layout {
        flex-direction: column;
    }

    .login-intro-panel {
        padding: 5rem 1.5rem 1.5rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .intro-content h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .intro-lead {
        margin-bottom: 0.5rem;
    }

    .login-form-section {
        min-height: auto;
        padding: 2rem;
    }

    .feature-list {
        display: none;
    }
}

/* Form Status Messages */
.success-notice {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(10, 255, 10, 0.1);
    border: 1px solid rgba(10, 255, 10, 0.3);
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.success-notice .icon {
    color: var(--accent-green);
    font-size: 1.2rem;
    line-height: 1;
}

.success-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #aaffaa;
    line-height: 1.4;
}

.error-notice {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    border-radius: 5px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.error-notice .icon {
    color: #ff4444;
    font-size: 1.2rem;
    line-height: 1;
}

.error-notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #ffaaaa;
    line-height: 1.4;
}

.btn-glow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.grecaptcha-badge { 
    visibility: hidden; 
}

.recaptcha-text {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    margin-top: 1rem;
}

.recaptcha-text a {
    color: #888;
    text-decoration: none;
}

.recaptcha-text a:hover {
    text-decoration: underline;
}
