@font-face {
    font-family: Hero;
    src: url(Hero-Regular.otf);
}

:root {
    --bg-deep: #04070c;
    --bg-navy: #0e2238;
    --panel: #16191e;
    --field: #0c0f14;
    --line: #2b3440;
    --text: #e8ecf1;
    --muted: #8b98a5;
    --accent: #0578b7;
    --accent-bright: #08aeff;
    --amber: #ffa000;
}

* { box-sizing: border-box; }

html {
    background-color: var(--bg-deep);
}

body {
    font-family: Hero, Verdana, Arial, Helvetica, sans-serif;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: var(--text);
    background: linear-gradient(to top, var(--bg-deep), var(--bg-navy)) fixed;
}

/* Soft drifting bokeh behind the card */
.bokeh {
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.bokeh.b1 {
    width: 420px; height: 420px;
    left: -120px; top: -100px;
    background: rgba(8, 174, 255, 0.16);
    animation: drift1 26s ease-in-out infinite alternate;
}
.bokeh.b2 {
    width: 360px; height: 360px;
    right: -100px; bottom: -120px;
    background: rgba(5, 120, 183, 0.18);
    animation: drift2 32s ease-in-out infinite alternate;
}
.bokeh.b3 {
    width: 240px; height: 240px;
    right: 18%; top: -80px;
    background: rgba(255, 160, 0, 0.07);
    animation: drift1 38s ease-in-out infinite alternate-reverse;
}
@keyframes drift1 {
    from { transform: translate(0, 0); }
    to   { transform: translate(70px, 50px); }
}
@keyframes drift2 {
    from { transform: translate(0, 0); }
    to   { transform: translate(-60px, -40px); }
}
@media (prefers-reduced-motion: reduce) {
    .bokeh { animation: none; }
}

.card {
    position: relative;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    margin: 20px;
}

/* Thin spectrum accent along the top */
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(to right,
        var(--accent), var(--accent-bright), #05e0c0, var(--amber));
    z-index: 1;
}

.brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    padding: 48px 56px;
    background:
        radial-gradient(circle at 30% 20%, rgba(8, 174, 255, 0.12), transparent 60%),
        linear-gradient(160deg, #12283f, #060b12);
}
.brand img {
    width: 200px;
    filter: drop-shadow(0 0 28px rgba(8, 174, 255, 0.25));
}
.brand .byline {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.form-panel {
    background: var(--panel);
    padding: 48px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    margin: 0 0 24px;
    font-size: 22px;
    font-weight: normal;
    letter-spacing: 0.5px;
}

#error {
    color: var(--amber);
    font-size: 13px;
}
#error:not(:empty) {
    margin-bottom: 8px;
}

.input-field {
    margin-bottom: 16px;
}
.input-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}
.input-field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field input:focus {
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(8, 174, 255, 0.18);
}

button {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    font-family: inherit;
    font-size: 15px;
    letter-spacing: 0.5px;
    color: white;
    background: linear-gradient(180deg, #0d84c4, var(--accent));
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: filter 0.15s, box-shadow 0.15s;
}
button:hover {
    filter: brightness(1.15);
    box-shadow: 0 4px 18px rgba(8, 174, 255, 0.35);
}
button:active {
    transform: translateY(1px);
}

@media (max-width: 640px) {
    body { overflow: auto; }
    .card { flex-direction: column; }
    .brand { padding: 32px; }
    .brand img { width: 140px; }
    .form-panel { padding: 32px; }
}

/* Change-password page */
#message {
    font-size: 13px;
}
#message:not(:empty) {
    margin-bottom: 8px;
}
#message.ok {
    color: #05e0c0;
}
.links {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}
.links a {
    color: var(--muted);
    text-decoration: none;
}
.links a:hover {
    color: var(--accent-bright);
}
