:root {
    --card-bg: rgba(135, 160, 205, 0.22);
    --card-border: rgba(255, 255, 255, 0.22);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.72);
    --field-bg: rgba(255, 255, 255, 0.84);
    --field-border: rgba(255, 255, 255, 0.55);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --accent: #f0e24a;
    --accent-2: #e6d93f;
    --link: rgba(255, 255, 255, 0.85);
    --link-hover: rgba(255, 255, 255, 1)
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    overflow: hidden;
    background: #0b1f3a;
}

.bg {
    inset: 0;
    position: fixed;
}

.bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(ellipse at top, rgb(255 255 255 / .2), transparent 55%), radial-gradient(ellipse at bottom, rgb(255 255 255 / 58%), #87cefab0 55%);
    pointer-events: none
}

.bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .1;
    background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / .035) 0, rgb(255 255 255 / .035) 1px, transparent 1px, transparent 3px), repeating-linear-gradient(90deg, rgb(255 255 255 / .02) 0, rgb(255 255 255 / .02) 1px, transparent 1px, transparent 4px);
    mix-blend-mode: overlay;
    pointer-events: none
}

.wrap {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px
}

.card {
    width: min(380px, 92vw);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 26px 26px 20px
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.brand .brand-logo {
    height: 7em;
}

.avatar {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgb(255 255 255 / .35);
    background: rgb(255 255 255 / .08);
    box-shadow: 0 10px 22px rgb(0 0 0 / .18)
}

.avatar svg {
    width: 34px;
    height: 34px;
    opacity: .9
}

.title {
    font-weight: 650;
    letter-spacing: .2px;
    font-size: 16px;
    margin: 0;
    color: var(--text);
    text-shadow: 0 1px 0 rgb(0 0 0 / .12)
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px
}

label {
    font-size: 14px;
    color: var(--muted);
    user-select: none
}

input[type="text"],
input[type="password"] {
    height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    color: rgb(10 20 35 / .92);
    outline: none;
    transition: box-shadow .18s ease, transform .06s ease, border-color .18s ease
}

input::placeholder {
    color: rgb(10 20 35 / .45)
}

input:focus {
    border-color: rgb(255 255 255 / .95);
    box-shadow: 0 0 0 3px rgb(255 255 255 / .22), 0 10px 18px rgb(0 0 0 / .12)
}

.btn {
    margin-top: 2px;
    height: 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .2px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    color: rgb(25 30 45 / .9);
    box-shadow: 0 10px 18px rgb(0 0 0 / .18), inset 0 1px 0 rgb(255 255 255 / .35);
    transition: transform .08s ease, filter .18s ease
}

.btn:hover {
    filter: brightness(1.03)
}

.btn:active {
    transform: translateY(1px)
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    user-select: none
}

.check input {
    width: 14px;
    height: 14px;
    accent-color: rgb(255 255 255 / .9)
}

a {
    color: var(--link);
    text-decoration: none;
    font-size: 12px
}

a:hover {
    color: var(--link-hover);
    text-decoration: underline
}

.footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    font-size: 12px;
    color: rgb(255 255 255 / .72)
}

@media (max-width:380px) {
    .card {
        padding: 22px 18px 18px
    }
}
