:root {
    --bg-color: #050505;
    --text-main: #e0e0e0;
    --text-muted: #666666;
    --accent-color: #ffffff;
    --border-color: #222222;
    --radius: 4px;
    --font-size-base: 13px;
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    /* Deep Silicon Base Base */
    background: linear-gradient(180deg, #020406 0%, #051014 100%);
    color: var(--text-main);
    font-family: var(--font-stack);
    font-size: var(--font-size-base);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 300;
    overflow-x: hidden;
}

/* Animated Background Pattern */
#bg-canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* TOPCon Solar Cell Aesthetic */
    background:
        /* Subtle "Finger" lines (vertical, very fine) */
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        /* "Busbar" lines (horizontal, thicker, metallic hint) */
        linear-gradient(rgba(200, 220, 255, 0.03) 2px, transparent 2px),
        /* Silicon Texture / Sheen */
        radial-gradient(circle at 80% 20%, rgba(32, 201, 151, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(0, 88, 66, 0.15) 0%, transparent 50%);

    background-size:
        4px 100%,
        /* Fine vertical fingers every 4px */
        100% 120px,
        /* Busbars every 120px */
        100% 100%,
        100% 100%;

    /* Animation: Pulse opacity to make lines appear/disappear */
    opacity: 0;
    animation: patternPulse 8s ease-in-out infinite;
}

@keyframes patternPulse {

    0%,
    100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* Helper for loading state */
body.loading {
    opacity: 0;
}

body:not(.loading) {
    opacity: 1;
    transition: opacity 0.8s ease;
}

/* Layout Container */
.main-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
    /* Strict left alignment usually looks more "technical/minimal" */
}

/* Header */
.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    height: 24px;
    opacity: 0.9;
}

/* Hero */
.hero-section {
    margin-bottom: 2rem;
    border-left: 2px solid var(--border-color);
    padding-left: 1.5rem;
}

/* Center align for logo look */
.hero-logo-container {
    margin-bottom: 1rem;
}

.hero-logo {
    width: 140px;
    /* Slightly smaller to fit left align */
    max-width: 100%;
    height: auto;
    filter: none;
    display: block;
    /* Align nicely */
}

#hero-subheadline {
    color: #888;
    font-size: 0.85rem;
    max-width: 400px;
    line-height: 1.6;
}

/* Countdown - Minimal Text */
.countdown-container {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
    font-family: monospace;
    /* Technical feel */
    color: var(--text-muted);
    font-size: 0.8rem;
}

.time-block {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.time-block span:first-child {
    color: var(--text-main);
    font-weight: 400;
}

/* Info Grid - Vertical Stack for minimalism */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.card {
    background: transparent;
    border: none;
    padding: 0;
}

.card h3 {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-text,
address,
.contact-list {
    color: var(--text-muted);
    font-style: normal;
    font-size: 0.8rem;
}

.contact-list li {
    margin-bottom: 4px;
}

.contact-list a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dotted #333;
}

.contact-list a:hover {
    border-bottom-color: var(--text-muted);
}

/* Footer */
.site-footer {
    margin-top: auto;
    font-size: 10px;
    color: #005842;
    /* Logo Text Green */
    padding-top: 2rem;
    opacity: 1;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    /* Space between copyright and login */
}

/* Footer Login Link Style */
.btn-login-text {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: inherit;
    text-decoration: none;
}

.btn-login-text:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-sep {
    opacity: 0.5;
}

/* Modal - Minimal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    pointer-events: auto;
    transition: 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.modal-overlay {
    background: rgba(0, 0, 0, 0.8);
    position: absolute;
    inset: 0;
    backdrop-filter: blur(8px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(8, 16, 20, 0.95) 0%, rgba(2, 4, 6, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(32, 201, 151, 0.1) inset;
    /* Subtle teal inner glow */
    max-width: 360px;
    width: 90%;
    padding: 2.5rem 2rem;
    position: relative;
    z-index: 1001;
    transform: translateY(0);
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 6px;
    text-align: center;
}

.modal.hidden .modal-content {
    transform: translateY(15px) scale(0.96);
    opacity: 0;
}

.modal h2 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-hint {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 2rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.65rem;
    color: #1a7185;
    /* Tech Teal */
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    padding: 12px 14px;
    color: #e0e0e0;
    border-radius: 2px;
    /* Tech feel */
    transition: 0.3s;
    font-family: var(--font-stack);
}

.form-group input:focus {
    border-color: #1a7185;
    background: rgba(26, 113, 133, 0.05);
    outline: none;
    box-shadow: 0 0 10px rgba(26, 113, 133, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #005842 0%, #004533 100%);
    /* Logo Green Gradient */
    color: #fff;
    border-radius: 2px;
    font-size: 0.85rem;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 500;
    margin-top: 1rem;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1a7185 0%, #135d6e 100%);
    /* Teal on hover */
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.forgot-link {
    font-size: 10px;
    color: #444;
    text-decoration: none;
    margin-top: 1rem;
    transition: 0.2s;
}

.forgot-link:hover {
    color: #1a7185;
}


.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #333;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}

.modal-close:hover {
    color: #fff;
    transform: rotate(90deg);
}

/* Mobile */
@media (max-width: 480px) {
    .main-wrapper {
        padding: 1.5rem;
    }

    .hero-section {
        padding-left: 1rem;
    }

    .countdown-container {
        gap: 1rem;
    }
}