.auth-page {
    --auth-teal: #4f46e5;
    --auth-teal-deep: #4338ca;
    --auth-orange: #f59e0b;
    --auth-ink: #1e1b4b;
    --auth-muted: #5b6270;
    --auth-line: #c7d2e0;
    --auth-surface: #fff;
    --auth-soft: #eef2ff;
    --auth-danger: #c83d42;
    box-sizing: border-box;
    min-height: 100vh;
    color: var(--auth-ink);
    background: linear-gradient(145deg,#e0e7ff 0%,#f8faff 52%,#fff3e8 100%);
    align-content: center;
    place-items: center;
    gap: 24px;
    padding: 32px 20px;
    font-family: Inter,Arial,sans-serif;
    display: grid;
    position: relative;
    overflow: hidden
}

.auth-page *,.auth-page :before,.auth-page :after {
    box-sizing: border-box
}

.auth-atmosphere {
    pointer-events: none;
    opacity: .48;
    background-image: linear-gradient(#4f46e512 1px,#0000 1px),linear-gradient(90deg,#4f46e512 1px,#0000 1px);
    background-size: 42px 42px;
    position: absolute;
    inset: 0;
    -webkit-mask-image: linear-gradient(#000,#0000 82%);
    mask-image: linear-gradient(#000,#0000 82%)
}

.auth-brand {
    z-index: 1;
    width: min(280px,62vw);
    display: block;
    position: relative
}

.auth-brand img {
    width: 100%;
    height: auto;
    display: block
}

.auth-panel {
    z-index: 1;
    border: 1px solid var(--auth-line);
    background: color-mix(in srgb, var(--auth-surface) 94%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    width: min(100%,510px);
    padding: 38px 42px 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 70px #1e1b4b26
}

.auth-panel__accent {
    background: linear-gradient(90deg, var(--auth-teal), var(--auth-orange));
    height: 5px;
    position: absolute;
    inset: 0 0 auto
}

.auth-heading {
    text-align: center
}

.auth-heading>span {
    color: var(--auth-teal-deep);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    display: block
}

.auth-heading h1 {
    color: var(--auth-ink);
    margin: 8px 0 10px;
    font: 800 31px/1.15 Neo Sans Pro,Inter,sans-serif
}

.auth-heading p {
    color: var(--auth-muted);
    margin: 0;
    font-size: 14px;
    line-height: 1.55
}

.auth-form {
    gap: 17px;
    margin-top: 28px;
    display: grid
}

.auth-field {
    color: var(--auth-ink);
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    display: grid
}

.auth-input-wrap {
    display: block;
    position: relative
}

.auth-input-wrap input,.auth-field--otp input {
    border: 1px solid var(--auth-line);
    background: var(--auth-surface);
    width: 100%;
    height: 50px;
    color: var(--auth-ink);
    border-radius: 6px;
    outline: none;
    font: 500 15px/1 Inter,sans-serif;
    transition: border-color .18s,box-shadow .18s,background .18s;
    display: block
}

.auth-input-wrap input {
    padding: 0 48px 0 44px
}

.auth-input-wrap input:focus,.auth-field--otp input:focus {
    border-color: var(--auth-teal);
    background: var(--auth-surface);
    box-shadow: 0 0 0 4px #4f46e521
}

.auth-input-wrap input[aria-invalid=true],.auth-field--otp input[aria-invalid=true] {
    border-color: var(--auth-danger)
}

.auth-input-icon {
    z-index: 1;
    color: var(--auth-teal-deep);
    place-items: center;
    display: grid;
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%)
}

.auth-input-icon svg {
    width: 18px;
    height: 18px
}

.auth-password-toggle {
    width: 36px;
    height: 36px;
    color: var(--auth-muted);
    box-shadow: none;
    background: 0 0;
    padding: 0;
    position: absolute;
    top: 7px;
    right: 6px
}

.auth-password-toggle:hover {
    color: var(--auth-teal-deep);
    background: var(--auth-soft)
}

.auth-field small,.auth-error {
    color: var(--auth-danger);
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35
}

.auth-requirements {
    color: var(--auth-muted);
    margin: -6px 0 0;
    font-size: 11px;
    line-height: 1.45
}

.auth-check {
    color: var(--auth-muted);
    cursor: pointer;
    grid-template-columns: 18px 1fr;
    align-items: start;
    gap: 9px;
    font-size: 12px;
    line-height: 1.45;
    display: grid
}

.auth-check input {
    width: 17px;
    height: 17px;
    accent-color: var(--auth-teal-deep);
    margin: 0
}

.auth-submit {
    color: #fff;
    background: linear-gradient(100deg, var(--auth-teal-deep), var(--auth-teal) 62%, #818cf8);
    text-transform: uppercase;
    border: 0;
    border-radius: 6px;
    width: 100%;
    min-height: 50px;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px #4338ca38
}

.auth-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px)
}

.auth-links {
    border-top: 1px solid var(--auth-line);
    color: var(--auth-muted);
    text-align: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 22px;
    font-size: 13px;
    display: grid
}

.auth-links a {
    color: var(--auth-teal-deep);
    font-weight: 800;
    text-decoration: none
}

.auth-links a:hover {
    color: var(--auth-orange);
    text-decoration: underline
}

.auth-otp {
    margin-top: 0
}

.auth-otp__icon {
    width: 62px;
    height: 62px;
    color: var(--auth-teal-deep);
    background: var(--auth-soft);
    border-radius: 50%;
    place-items: center;
    margin: 0 auto 2px;
    display: grid
}

.auth-otp__icon svg {
    width: 30px;
    height: 30px
}

.auth-field--otp input {
    text-align: center;
    letter-spacing: 8px;
    padding: 0 14px;
    font-size: 24px;
    font-weight: 800
}

.auth-back {
    width: 100%;
    color: var(--auth-teal-deep)
}

.auth-status {
    border-left: 3px solid var(--auth-orange);
    color: var(--auth-ink);
    background: #fff6ed;
    border-radius: 4px;
    margin: 0;
    padding: 12px;
    font-size: 12px;
    line-height: 1.45
}

.auth-security {
    z-index: 1;
    color: var(--auth-muted);
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 11px;
    display: flex;
    position: relative
}

.auth-security svg {
    width: 14px;
    height: 14px;
    color: var(--auth-teal-deep)
}

@media (width<=560px) {
    .auth-page {
        justify-content: stretch;
        padding: 22px 14px
    }

    .auth-brand {
        width: 220px;
        margin-inline:auto}

    .auth-panel {
        width: 100%;
        padding: 32px 22px 26px
    }

    .auth-heading h1 {
        font-size: 27px
    }
}

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

[hidden] {
    display: none!important
}
