/* Standalone login skin. No private data or application modules are loaded here. */
:root {
    color-scheme: dark;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #101213;
    color: #f3f7f7;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
[hidden] { display: none !important; }
button, input { font: inherit; }

.login-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 28px 56px;
    background: #101213 url('/static/img/observatory-desktop.webp') center center / cover no-repeat;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: rgba(9, 13, 15, 0.45);
}

.login-brand {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #d2e2e5;
    font-size: 12px;
}

.login-wordmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    color: #69e1ec;
    background: #192a2e;
    border: 1px solid #4e777c;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 650;
}

.login-version { color: #f3cb7a; }
.login-content { margin: auto 0; padding: 40px 0; min-width: 0; }
.login-heading { margin-bottom: 24px; text-shadow: 0 2px 12px #101213; }
.login-eyebrow { margin: 0 0 12px; color: #a9eaf0; font-size: 14px; }
.login-heading h1 { margin: 0; font-size: 36px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.login-form {
    width: 380px;
    max-width: 100%;
    padding: 24px;
    background: rgba(16, 20, 22, 0.96);
    border-top: 2px solid #69e1ec;
    border-left: 1px solid #4e777c;
}
.login-form h2 { margin: 0 0 24px; font-size: 20px; font-weight: 600; }
.login-field { margin-bottom: 20px; }
.login-field label { display: block; font-size: 14px; margin-bottom: 8px; color: #d5e0e2; }
.login-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    background: #1e272a;
    color: #f3f7f7;
    border: 1px solid #6b8187;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 180ms ease;
}
.login-field input:hover { border-color: #a5c9ce; }
.login-field input[aria-invalid='true'] { border-color: #ffa7af; }
.login-field input:focus-visible, .login-form button:focus-visible { outline: 2px solid #91f0f7; outline-offset: 4px; }
.login-form button {
    width: 100%;
    min-height: 48px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #69e1ec;
    border-radius: 4px;
    background: #69e1ec;
    color: #101213;
    font-size: 16px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease;
}
.login-form button:hover { border-color: #a0f0f7; background: #a0f0f7; }
.login-form button img { flex: 0 0 auto; }
.login-error { margin: 0 0 20px; padding: 10px 12px; border-left: 2px solid #ffa7af; background: #342326; color: #ffb5ba; font-size: 14px; overflow-wrap: anywhere; }
.login-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #c1cdd0; font-size: 12px; }

@media (max-width: 1024px) {
    .login-page { padding: 24px 32px; }
}

@media (max-width: 760px) {
    .login-page { padding: 20px; background-image: url('/static/img/observatory-mobile.webp'); background-position: center top; }
    .login-heading h1 { font-size: 28px; }
    .login-content { padding: 32px 0; }
    .login-form { padding: 24px 20px; }
    .login-brand { gap: 8px; }
    .login-brand > span:nth-child(2) { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
    .login-page { background-image: none; }
    .login-page::before { display: none; }
    .login-form, .login-field input, .login-form button { border: 1px solid ButtonText; }
}
