body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 18% 12%, rgba(38, 82, 185, 0.2), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(218, 64, 92, 0.16), transparent 26%),
        #08090c;
}

.auth-shell {
    min-height: 100vh;
    color: #f7f7fb;
}

.auth-panel {
    width: min(440px, calc(100vw - 28px));
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background: rgba(15, 16, 20, 0.92);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(18px);
}

.auth-logo {
    width: 118px;
    max-height: 58px;
    object-fit: contain;
}

.auth-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transition: border-color 150ms ease, background 150ms ease;
}

.auth-input:focus {
    outline: none;
    border-color: #9db7ff;
    background: rgba(255, 255, 255, 0.09);
}

.primary-button {
    border-radius: 8px;
    background: #f5c542;
    color: #111;
    font-weight: 800;
    transition: transform 150ms ease, background 150ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: #ffd86a;
    transform: translateY(-1px);
}

.social-button {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.social-button:hover,
.social-button:focus-visible,
.social-button.facebook:hover,
.social-button.facebook:focus-visible {
    background: #e5e7eb;
    border-color: rgba(255, 255, 255, 0.36);
    color: #111827;
    transform: translateY(-1px);
}

.social-button:active,
.social-button.facebook:active {
    background: #4b5563;
    border-color: #4b5563;
    color: #fff;
    transform: translateY(0);
}

.social-button.facebook {
    background: #fff;
    color: #111827;
}

.google-mark {
    color: #4285f4;
}

.facebook-mark {
    background: #1877f2;
    color: #fff;
}

.auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, 0.48);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.notice {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}

.notice.error {
    background: rgba(217, 45, 32, 0.16);
    color: #ffb4ad;
}

.notice.success {
    background: rgba(18, 183, 106, 0.15);
    color: #8ff0c0;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.68);
}

.auth-modal-card {
    width: min(560px, calc(100vw - 28px));
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: #101114;
    color: #fff;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
    padding: 24px;
}

.auth-modal-card h2 {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px;
}

.auth-modal-card p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.auth-device-list {
    display: grid;
    gap: 10px;
}

.auth-device-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.auth-device-row strong,
.auth-device-row small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-device-row strong {
    font-size: 14px;
    font-weight: 800;
}

.auth-device-row small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.48);
    font-size: 11px;
}

.modal-button {
    border: 0;
    border-radius: 6px;
    min-height: 36px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
}
