:root {
    color-scheme: dark;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #080b10;
    color: #f5f7fb;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(44, 111, 255, 0.16), transparent 36rem),
        radial-gradient(circle at 85% 85%, rgba(39, 196, 156, 0.10), transparent 30rem),
        #080b10;
}

button,
input {
    font: inherit;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 4vw, 3rem);
}

.auth-card {
    width: min(100%, 29rem);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 1.25rem;
    background: rgba(17, 22, 31, 0.94);
    box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(1.25rem);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.5rem;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, #377dff, #1851c7);
    box-shadow: 0 0.75rem 2rem rgba(42, 105, 230, 0.28);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: #7ba4ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.75rem, 7vw, 2.35rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.intro {
    margin: 0.85rem 0 1.8rem;
    color: #9ca8bb;
    line-height: 1.6;
}

.auth-card > .alert {
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 111, 118, 0.25);
    border-radius: 0.75rem;
    background: rgba(161, 42, 51, 0.16);
    color: #ffc2c5;
    font-size: 0.9rem;
    line-height: 1.45;
}

.auth-form {
    display: grid;
    gap: 0.75rem;
}

.auth-form label {
    margin-top: 0.4rem;
    color: #dfe5ef;
    font-size: 0.86rem;
    font-weight: 650;
}

.auth-form input {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid #303949;
    border-radius: 0.75rem;
    outline: none;
    background: #0c1119;
    color: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.auth-form input:hover {
    border-color: #465268;
}

.auth-form input:focus {
    border-color: #4d88ff;
    background: #0e1420;
    box-shadow: 0 0 0 0.22rem rgba(65, 128, 255, 0.17);
}

.auth-form button,
.secondary-button {
    min-height: 3.15rem;
    margin-top: 0.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #3479ff, #1d5bd7);
    box-shadow: 0 0.8rem 2rem rgba(28, 89, 215, 0.22);
    color: #fff;
    cursor: pointer;
    font-weight: 750;
    transition: filter 160ms ease, transform 160ms ease;
}

.auth-form button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.auth-form button:focus-visible,
.text-button:focus-visible {
    outline: 0.2rem solid rgba(101, 153, 255, 0.55);
    outline-offset: 0.18rem;
}

.secondary-action {
    margin-top: 1.2rem;
    text-align: center;
}

.text-button {
    border: 0;
    background: transparent;
    color: #9fb8ea;
    cursor: pointer;
    font-size: 0.88rem;
}

.text-button:hover {
    color: #fff;
}

.compact-form {
    margin-top: 1.5rem;
}

.auth-form .secondary-button {
    border: 1px solid #38445a;
    background: #151c27;
    box-shadow: none;
}

@media (max-width: 30rem) {
    .auth-shell {
        padding: 0;
        place-items: stretch;
    }

    .auth-card {
        min-height: 100vh;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}

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