html,
body {
    height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: rgb(32, 50, 70);
}

#matrix-rain {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    background:
        radial-gradient(circle at 50% 45%, rgba(68, 128, 168, 0.14), transparent 42%),
        rgb(32, 50, 70);
}

.logo-stage {
    position: relative;
    z-index: 1;
    height: 100%;
    width: 100%;
    padding: 30px 0;
}

.logo-cell {
    text-align: center;
    vertical-align: middle;
}

.logo-cell img {
    width: 200px;
    height: 166px;
    filter: drop-shadow(0 0 18px rgba(99, 209, 255, 0.34));
}

.login-card {
    box-sizing: border-box;
    width: min(380px, calc(100vw - 32px));
    margin: 30px auto 0;
    padding: 26px;
    color: #eefaff;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left;
    background: rgba(13, 26, 39, 0.72);
    border: 1px solid rgba(126, 213, 255, 0.24);
    border-radius: 8px;
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.login-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
}

.login-card p {
    margin: 0 0 22px;
    color: rgba(221, 244, 255, 0.72);
    font-size: 14px;
    line-height: 1.45;
}

.login-field {
    display: block;
    margin-bottom: 14px;
}

.login-field span {
    display: block;
    margin-bottom: 7px;
    color: rgba(235, 250, 255, 0.8);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.login-field input {
    box-sizing: border-box;
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: #ffffff;
    font-size: 15px;
    background: rgba(8, 18, 29, 0.82);
    border: 1px solid rgba(128, 211, 255, 0.25);
    border-radius: 6px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-field input:focus {
    background: rgba(10, 24, 38, 0.92);
    border-color: rgba(128, 226, 255, 0.82);
    box-shadow: 0 0 0 3px rgba(74, 178, 220, 0.18);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 18px;
    color: rgba(221, 244, 255, 0.74);
    font-size: 13px;
}

.login-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.login-options a {
    color: #8ee7ff;
    text-decoration: none;
    white-space: nowrap;
}

.login-options a:hover {
    text-decoration: underline;
}

.login-button {
    width: 100%;
    height: 48px;
    color: #061623;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, #95f2ff, #4ab2dc 58%, #78bdff);
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(74, 178, 220, 0.26);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(74, 178, 220, 0.32);
}

.login-note {
    margin-top: 16px;
    color: rgba(221, 244, 255, 0.54);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}
.login-note a { color: #8ee7ff; text-decoration: none; }
.login-error { color: #ffb6ba !important; margin: 12px 0 !important; font-size: 13px !important; }
.login-message { color: #78bdff !important; font-size: 13px !important; margin: 12px 0 !important; }
.login-button:disabled { opacity: .6; cursor: wait; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible { outline: 2px solid #8ee7ff; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

@media (max-height: 620px) {
    .logo-cell img {
        width: 150px;
        height: auto;
    }

    .login-card {
        margin-top: 18px;
        padding: 20px;
    }
}
