:root {
    --bg: #050b14;
    --surface: rgba(12, 25, 42, .91);
    --surface-line: rgba(255, 255, 255, .1);
    --gold: #e8bd47;
    --gold-soft: #f7dc83;
    --text: #f7f9fc;
    --muted: #9ba8bb;
    --blue: #347df5;
}

* {
    box-sizing: border-box;
}

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

body {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 320px;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(52, 125, 245, .17), transparent 33rem),
        radial-gradient(circle at 86% 78%, rgba(232, 189, 71, .13), transparent 28rem),
        linear-gradient(145deg, #07111e, #040912 72%);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 50%;
    pointer-events: none;
}

body::before {
    width: 520px;
    height: 520px;
    top: -330px;
    right: -130px;
}

body::after {
    width: 360px;
    height: 360px;
    bottom: -250px;
    left: -80px;
}

main.card {
    position: relative;
    width: min(460px, calc(100vw - 32px));
    padding: 42px;
    overflow: hidden;
    border: 1px solid var(--surface-line);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(16, 31, 51, .96), var(--surface));
    box-shadow:
        0 34px 90px rgba(0, 0, 0, .48),
        inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

main.card::before {
    content: "";
    display: block;
    width: 48px;
    height: 5px;
    margin-bottom: 27px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    box-shadow: 0 0 20px rgba(232, 189, 71, .3);
}

main.card h1 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 32px;
    font-weight: 760;
    letter-spacing: -.045em;
}

main.card .brand {
    color: var(--gold-soft);
    font-weight: 780;
}

main.card p {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 14px;
}

main.card label {
    display: block;
    margin: 19px 0 8px;
    color: #aab6c8;
    font-size: 10px;
    letter-spacing: .1em;
}

main.card input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--surface-line);
    border-radius: 11px;
    background: rgba(3, 10, 18, .62);
    padding: 0 15px;
    color: var(--text);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

main.card input:hover {
    border-color: rgba(255, 255, 255, .17);
}

main.card input:focus {
    border-color: #65a0ff;
    background: rgba(4, 14, 25, .88);
    box-shadow: 0 0 0 4px rgba(52, 125, 245, .15);
}

main.card button {
    width: 100%;
    height: 52px;
    margin-top: 27px;
    border: 1px solid rgba(247, 220, 131, .58);
    border-radius: 11px;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 13px 30px rgba(232, 189, 71, .17);
    color: #11151c;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

main.card button:hover {
    filter: brightness(1.06);
    box-shadow: 0 16px 36px rgba(232, 189, 71, .23);
    transform: translateY(-1px);
}

main.card button:active {
    transform: translateY(0);
}

main.card .error {
    margin-bottom: 18px;
    border-color: rgba(239, 90, 80, .38);
    border-radius: 10px;
    background: rgba(239, 90, 80, .1);
    color: #ffc0bb;
    font-size: 13px;
}

@media (max-width: 540px) {
    body {
        align-items: center;
        overflow-y: auto;
        padding: 18px 0;
    }

    main.card {
        width: calc(100vw - 24px);
        padding: 30px 24px 26px;
        border-radius: 18px;
    }

    main.card::before {
        margin-bottom: 22px;
    }

    main.card h1 {
        font-size: 28px;
    }

    main.card p {
        margin-bottom: 23px;
    }

    main.card input {
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }
}
