/* The Infrasphere Home Module */

/* Video Background */
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Infrasphere palette: frozen pale #E0F2F7, frozen mid #9BC0CE */
    background:
        linear-gradient(
            180deg,
            rgba(224, 242, 247, 0.18) 0%,
            rgba(155, 192, 206, 0.12) 100%
        ),
        rgba(5, 5, 5, 0.4);
    /* Soft frozen blue tint + dark overlay for text readability */
    pointer-events: none;
}

/* Home Layout */
.home-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 15vh;
    color: var(--text-primary);
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

/* Typography */
.home-title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 4rem;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    color: #0f172a;
    /* Slate 900 */
}

/* Dark mode overrides handled by body class 'dark' */
.dark .home-title {
    color: #ffffff;
}

@media (min-width: 768px) {
    .home-title {
        font-size: 6rem;
    }
}

.home-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 300;
    font-size: 1.125rem;
    color: #475569;
    /* Slate 600 */
    margin-bottom: 2rem;
    max-width: 42rem;
}

.dark .home-quote {
    color: #94a3b8;
    /* Slate 400 */
}

@media (min-width: 768px) {
    .home-quote {
        font-size: 1.25rem;
    }
}

/* Countdown */
.countdown-container {
    margin-bottom: 3rem;
}

.countdown-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {
    .countdown-wrapper {
        gap: 1.5rem;
    }
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-box {
    width: 4rem;
    height: 4rem;
    background-color: #f1f5f9;
    /* Slate 100 */
    border: 1px solid #e2e8f0;
    /* Slate 200 */
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .countdown-box {
    background-color: #1e293b;
    /* Slate 800 */
    border-color: #334155;
    /* Slate 700 */
}

@media (min-width: 768px) {
    .countdown-box {
        width: 6rem;
        height: 6rem;
    }
}

#countdown-days,
#countdown-hours,
#countdown-minutes,
#countdown-seconds {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: #0f172a;
}

.dark #countdown-days,
.dark #countdown-hours,
.dark #countdown-minutes,
.dark #countdown-seconds {
    color: #ffffff;
}

@media (min-width: 768px) {

    #countdown-days,
    #countdown-hours,
    #countdown-minutes,
    #countdown-seconds {
        font-size: 2.25rem;
    }
}

.countdown-label {
    font-size: 0.75rem;
    color: #64748b;
    /* Slate 500 */
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .countdown-label {
    color: #94a3b8;
    /* Slate 400 */
}

@media (min-width: 768px) {
    .countdown-label {
        font-size: 0.875rem;
    }
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 300;
    color: #94a3b8;
    /* Slate 400 */
}

.dark .countdown-separator {
    color: #475569;
    /* Slate 600 */
}

@media (min-width: 768px) {
    .countdown-separator {
        font-size: 2.25rem;
    }
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.login-input-group {
    display: flex;
    gap: 0.5rem;
}

.login-input {
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: all 0.2s;
}

.dark .login-input {
    background: #1e293b;
    /* Slate 800 */
    border-color: #334155;
    /* Slate 700 */
    color: #ffffff;
}

.login-input:focus {
    box-shadow: 0 0 0 2px #94a3b8;
}

.login-input.border-red-500 {
    border-color: #ef4444 !important;
}

.login-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    background: #0f172a;
    /* Slate 900 */
    color: #ffffff;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.dark .login-btn {
    background: #ffffff;
    color: #0f172a;
}

.login-btn:hover {
    opacity: 0.9;
}

.error-message {
    color: #ef4444;
    /* Red 500 */
    font-size: 0.875rem;
}

.hidden {
    display: none;
}

/* Footer */
.home-footer {
    width: 100%;
    text-align: center;
    padding: 2rem 0;
    font-size: 0.75rem;
    color: #94a3b8;
    /* Slate 400 */
    opacity: 1;
    /* Override from original? Original was 0.6 hover 1.0 */
    opacity: 0.6;
    transition: opacity 0.3s;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: auto;
    /* Push to bottom */
}

.dark .home-footer {
    color: #475569;
    /* Slate 600 */
}

.home-footer:hover {
    opacity: 1;
}

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

.home-footer a {
    color: inherit;
    text-decoration: none;
}

.cc-icons {
    display: flex;
    align-items: center;
    margin-left: 0.2em;
}

.cc-icon {
    width: 1em;
    height: 1em;
    margin-left: 1px;
    /* Invert filter for dark mode if SVG is black? SVGs likely black by default */
}

/* Filter for white icons in dark mode */
.dark .cc-icon,
.dark .home-footer img {
    filter: invert(1) brightness(0.6);
    /* Adjust to match slate-600 mostly */
}