:root {
    color-scheme: light;
    --navy: #08264a;
    --blue: #1769e0;
    --blue-dark: #0e55be;
    --ink: #142033;
    --muted: #607086;
    --danger: #9d1c24;
    --success: #17653a;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: radial-gradient(circle at 15% 10%,#dcecff 0,transparent 34%),linear-gradient(145deg,#eef4fb,#f8fafc 70%);
    color: var(--ink);
    font-family: Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(20px,5vw,64px);
}

.auth-card {
    width: min(100%,460px);
    overflow: hidden;
    border: 1px solid rgba(8,38,74,.1);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(8,38,74,.16);
}

.auth-brand {
    padding: 28px 32px 25px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg,var(--navy),#124f8e);
}

.brand-name {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: .26em;
    text-indent: .26em;
}

.brand-product {
    margin: 7px 0 0;
    color: #d8e9fc;
    font-size: 14px;
}

.auth-content {
    padding: 30px 34px 34px;
}

.auth-content h1 {
    margin: 0;
    text-align: center;
    font-size: 27px;
    line-height: 1.2;
}

.auth-intro {
    margin: 10px auto 25px;
    max-width: 350px;
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.field {
    margin-bottom: 18px;
}

.field label, .label-row label {
    font-size: 14px;
    font-weight: 650;
}

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

.label-row a, .secondary-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.field>label {
    display: block;
    margin-bottom: 8px;
}

input[type=email], input[type=password] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #bdcada;
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: 0;
    transition: border-color .15s,box-shadow .15s;
}

input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(23,105,224,.13);
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 20px;
    color: #39475a;
    font-size: 14px;
}

.remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--blue);
}

.primary-button {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23,105,224,.2);
}

.primary-button:hover {
    background: var(--blue-dark);
}

.primary-button:focus-visible, .secondary-link:focus-visible, .label-row a:focus-visible {
    outline: 3px solid rgba(23,105,224,.3);
    outline-offset: 3px;
}

.secondary-link {
    display: block;
    margin-top: 18px;
    text-align: center;
}

.field-help {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.alert {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
}

.alert p {
    margin: 0 0 4px;
    font-weight: 700;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert-danger {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: var(--danger);
}

.alert-success {
    border: 1px solid #bbebcd;
    background: #edf9f2;
    color: var(--success);
}

@media(max-width:520px) {
    .auth-shell {
        padding: 14px;
    }

    .auth-card {
        border-radius: 16px;
    }

    .auth-brand {
        padding: 23px 20px 21px;
    }

    .auth-content {
        padding: 25px 22px 28px;
    }

    .auth-content h1 {
        font-size: 24px;
    }
}

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