* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.login-page {
    width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    background: #020617;
    color: white;
}

.login-video {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #020617;
}

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(2, 6, 23, 0.62),
            rgba(2, 6, 23, 0.22)
        ),
        linear-gradient(
            0deg,
            rgba(2, 6, 23, 0.56),
            rgba(2, 6, 23, 0.08)
        );
}

.login-hero {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 34px clamp(18px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
}

.login-hero-copy {
    width: min(760px, 100%);
    padding-bottom: clamp(36px, 10vh, 96px);
}

.login-hero-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: 0;
    font-weight: 800;
}

.login-hero-copy p {
    margin: 18px 0 24px;
    font-size: clamp(18px, 2.4vw, 30px);
    font-weight: 600;
}

.hero-login-btn,
.login-box button {
    border: none;
    cursor: pointer;
    color: white;
    background: #ef4444;
    font-weight: 700;
}

.hero-login-btn {
    padding: 13px 28px;
    border-radius: 6px;
    font-size: 16px;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(2, 6, 23, 0.68);
}

.login-box {
    position: relative;
    width: min(390px, 100%);
    max-height: calc(100vh - 36px);
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.94);
    color: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.34);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.login-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px !important;
    height: 34px;
    padding: 0 !important;
    border-radius: 4px;
    background: #334155 !important;
}

.login-box h1 {
    text-align: center;
    margin: 8px 0 6px;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: #cbd5e1;
    margin-top: 0;
    margin-bottom: 24px;
}

.login-box input {
    width: 100%;
    margin-bottom: 14px;
    padding: 13px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: #020617;
    color: white;
    font-size: 16px;
}

.login-box button {
    width: 100%;
    padding: 13px;
    border-radius: 6px;
    font-size: 16px;
}

.secondary-login-btn {
    margin-top: 10px;
    background: #475569 !important;
}

#error {
    color: #fca5a5;
    text-align: center;
    min-height: 20px;
}

#request-message {
    color: #cbd5e1;
    text-align: center;
}

@media (max-width: 768px) {
    input,
    button {
        font-size: 16px !important;
        touch-action: manipulation;
    }

    .login-hero {
        padding: 22px 18px;
    }

    .login-brand {
        font-size: 16px;
    }

    .login-hero-copy {
        padding-bottom: 60px;
    }

    .login-hero-copy h1 {
        font-size: 42px;
    }

    .login-hero-copy p {
        font-size: 20px;
    }

    .login-box {
        padding: 24px 18px;
    }
}
