:root {
    --login-ink: #1b006a;
    --login-muted: #665d88;
    --login-purple: #3d15b0;
    --login-violet: #595ee1;
    --login-yellow: #fec341;
    --login-line: #d9d9ea;
}

body {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #f0f0ff 0%, #ffffff 54%, #fff6d8 100%);
    color: var(--login-ink);
    font-family: 'Roboto Mono', monospace;
}
body *, input, button { font-family: 'Roboto Mono', monospace; }
.header-title, .logo-container h2, .btn { font-family: 'Tektur', Arial, sans-serif; }
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    animation: none;
}
body::before { width: 340px; height: 340px; top: -170px; right: -110px; background: rgba(254, 195, 65, .28); }
body::after { width: 420px; height: 420px; bottom: -250px; left: -150px; background: rgba(89, 94, 225, .11); }

.logo-container { margin-bottom: 26px; animation: enterDown .45s ease-out both; }
.logo-container h2 { color: var(--login-ink); letter-spacing: -.045em; }
.logo-container img { filter: drop-shadow(0 6px 14px rgba(61, 21, 176, .17)); }
.logo-container h2 span { color: var(--login-purple); }

.container {
    position: relative;
    max-width: 440px;
    padding: 42px 44px;
    border: 1px solid var(--login-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(61, 21, 176, .13);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: enterUp .52s cubic-bezier(.22, 1, .36, 1) both;
}
.container::before {
    content: '';
    display: block;
    width: 58px;
    height: 6px;
    margin: -8px auto 24px;
    border-radius: 99px;
    background: var(--login-yellow);
    box-shadow: 23px 0 0 #49c0a4;
}
.header-title { color: var(--login-ink); letter-spacing: -.04em; }
.subtitle { color: var(--login-muted); line-height: 1.65; }
label { color: var(--login-ink); }
input { min-height: 54px; color: var(--login-ink); border: 1px solid var(--login-line); border-radius: 12px; background: #faf9ff; }
input:hover { border-color: rgba(61, 21, 176, .38); }
input:focus { border-color: var(--login-purple); background: #fff; box-shadow: 0 0 0 4px rgba(61, 21, 176, .13); }
.btn { border-radius: 12px; background: linear-gradient(115deg, var(--login-purple), var(--login-violet)); box-shadow: 0 10px 24px rgba(61, 21, 176, .23); text-transform: none; letter-spacing: .01em; }
.btn:hover { background: linear-gradient(115deg, #330f9a, #4e53cc); box-shadow: 0 14px 30px rgba(61, 21, 176, .31); }
.btn:disabled { cursor: wait; opacity: .6; transform: none; }
#login-error { padding: 12px 15px; margin: 0 0 12px; border-radius: 10px; color: #a33f3f; background: #fff1f0; border: 1px solid #f0c7c3; font-size: 13px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--login-violet); outline-offset: 2px; }

@keyframes enterUp { from { opacity: 0; transform: translateY(14px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes enterDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 480px) {
    body { justify-content: flex-start; padding-top: max(42px, 9vh); }
    .container { padding: 32px 24px; border-radius: 20px; }
    .logo-container h2 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
