/* The image is intentionally used as a full-screen cover.
   Keep the focal content toward the upper third of the image. */

:root {
    --bg: #050a10;
    --panel: rgba(5, 10, 16, 0.82);
    --text: #eef4f7;
    --muted: #9eabb3;
    --accent: #78b7d8;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.48)),
        url("/images/background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* Login */

.login {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 80px);
}

.login-card {
    width: min(380px, 100%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: var(--panel);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.login-card h1 {
    margin: 0 0 0.25rem;
    font-size: 2rem;
}

.login-card p {
    margin: 0 0 1.5rem;
    color: var(--muted);
}

form {
    display: grid;
    gap: 0.75rem;
}

input,
button {
    width: 100%;
    min-height: 44px;
    padding: 0 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font: inherit;
}

input {
    color: var(--text);
    background: rgba(0, 0, 0, 0.42);
}

button {
    margin-top: 0.25rem;
    color: #061018;
    background: var(--accent);
    border-color: transparent;
    cursor: pointer;
}

/* 404 */

.error-page {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: clamp(24px, 5vw, 80px);
}

.error-card {
    width: min(460px, 100%);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-left: 3px solid rgba(120, 183, 216, 0.7);
    background: rgba(5, 10, 16, 0.78);
    backdrop-filter: blur(5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.error-code {
    margin-bottom: 0.25rem;
    color: var(--accent);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
}

.error-card h1 {
    margin: 1rem 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.error-card blockquote {
    margin: 1.5rem 0;
    color: var(--muted);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.6;
}

.error-card p {
    color: var(--muted);
    line-height: 1.6;
}

.error-card a {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--accent);
    text-decoration: none;
}

.error-card a:hover {
    text-decoration: underline;
}

/* Dashboard variant:
   use <body class="dashboard"> after authentication.
   The same image becomes the page background/header. */

.dashboard {
    background-position: center top;
}

.dashboard::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.10) 0,
        rgba(0, 0, 0, 0.35) 38%,
        rgba(0, 0, 0, 0.78) 100%
    );
}

@media (max-width: 700px) {
    body {
        background-position: 60% center;
    }

    .dashboard {
        background-position: 60% top;
    }
}
