:root {
    color-scheme: light;
    --auth-ink: #172a37;
    --auth-muted: #74828b;
    --auth-teal: #137f79;
    --auth-teal-dark: #0c625f;
    --auth-border: #e3e9e9;
}

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

body.auth-page {
    margin: 0;
    color: var(--auth-ink);
    background: #fff;
    font-family: "DM Sans", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
}

.auth-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(ellipse at 86% 16%, rgb(76 189 172 / 21%), transparent 29%),
        radial-gradient(ellipse at 10% 92%, rgb(40 135 137 / 22%), transparent 34%),
        linear-gradient(145deg, #102d3a 0%, #0b4248 55%, #0d5655 100%);
}

.auth-visual::before,
.auth-visual::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

.auth-visual::before {
    top: 16%;
    right: -17rem;
    width: 38rem;
    height: 38rem;
    border: 1px solid rgb(255 255 255 / 9%);
    border-radius: 50%;
    box-shadow: 0 0 0 3.5rem rgb(255 255 255 / 2%), 0 0 0 7rem rgb(255 255 255 / 2%);
}

.auth-visual::after {
    right: 12%;
    bottom: 17%;
    width: 7rem;
    height: 7rem;
    background-image: radial-gradient(rgb(255 255 255 / 24%) 1px, transparent 1px);
    background-size: 13px 13px;
    opacity: .45;
}

.auth-visual__glow {
    position: absolute;
    width: 23rem;
    height: 23rem;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.auth-visual__glow--top {
    top: -17rem;
    left: -9rem;
    background: rgb(66 188 165 / 12%);
}

.auth-visual__glow--bottom {
    right: 18%;
    bottom: -19rem;
    background: rgb(54 157 150 / 17%);
}

.auth-visual__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5.5rem) clamp(2.5rem, 7.2vw, 7.5rem);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.auth-brand img {
    display: block;
    width: clamp(148px, 15vw, 205px);
    height: auto;
    object-fit: contain;
}

.auth-visual__message {
    width: min(100%, 550px);
    margin: auto 0;
    padding: 5rem 0 4.2rem;
}

.auth-eyebrow,
.auth-heading__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.6;
    text-transform: uppercase;
}

.auth-eyebrow {
    color: #a7d6cf;
}

.auth-eyebrow > span:first-child,
.auth-status span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #72d0b1;
    box-shadow: 0 0 0 4px rgb(114 208 177 / 13%);
}

.auth-eyebrow__separator {
    color: rgb(167 214 207 / 52%);
    font-weight: 400;
}

.auth-visual__message h1 {
    max-width: 530px;
    margin: 1.5rem 0 1.2rem;
    color: #fff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(2.65rem, 4.7vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.12;
}

.auth-visual__message > p {
    max-width: 455px;
    margin: 0;
    color: rgb(239 249 247 / 74%);
    font-size: 1.05rem;
    line-height: 1.8;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 460px;
    margin-top: 3.3rem;
    padding: 1.05rem 1.15rem;
    border: 1px solid rgb(255 255 255 / 13%);
    border-radius: 14px;
    background: rgb(255 255 255 / 7%);
    backdrop-filter: blur(12px);
}

.auth-feature__icon {
    display: grid;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 12px;
    color: #b6e4da;
    background: rgb(255 255 255 / 8%);
}

.auth-feature__icon svg {
    width: 22px;
    height: 22px;
}

.auth-feature strong,
.auth-feature span {
    display: block;
}

.auth-feature strong {
    color: #fff;
    font-size: .86rem;
    font-weight: 600;
}

.auth-feature span {
    margin-top: .3rem;
    color: rgb(239 249 247 / 65%);
    font-size: .76rem;
}

.auth-feature__arrow {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-left: auto;
    color: #a7d6cf;
}

.auth-visual__footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: rgb(239 249 247 / 60%);
    font-size: .72rem;
    letter-spacing: .02em;
}

.auth-panel {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 2.5rem clamp(2.25rem, 6vw, 6.5rem);
    background:
        radial-gradient(ellipse at 100% 0%, rgb(19 127 121 / 4%), transparent 36%),
        #fff;
}

.auth-panel__inner {
    width: 100%;
    max-width: 440px;
}

.auth-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(3.5rem, 7vh, 5.5rem);
}

.auth-status {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #53636b;
    font-size: .79rem;
    font-weight: 600;
}

.auth-status span {
    width: 6px;
    height: 6px;
    background: var(--auth-teal);
    box-shadow: 0 0 0 4px rgb(19 127 121 / 10%);
}

.auth-panel__top-note {
    color: #96a0a5;
    font-size: .72rem;
}

.auth-heading {
    margin-bottom: 2.15rem;
}

.auth-heading__eyebrow {
    margin-bottom: .85rem;
    color: var(--auth-teal);
    font-size: .69rem;
}

.auth-heading h2 {
    margin: 0;
    color: var(--auth-ink);
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: clamp(2rem, 3.1vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1.2;
}

.auth-heading p {
    margin: .75rem 0 0;
    color: var(--auth-muted);
    font-size: .93rem;
    line-height: 1.65;
}

.auth-form {
    display: block;
    margin: 0;
}

.auth-field {
    margin-bottom: 1.45rem;
}

.auth-field label {
    display: block;
    margin-bottom: .55rem;
    color: #33464f;
    font-size: .82rem;
    font-weight: 600;
}

.auth-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-field__label-row label {
    margin-bottom: .55rem;
}

.auth-page .auth-field .form-control {
    width: 100%;
    min-height: 54px;
    padding: .85rem 1rem;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    color: var(--auth-ink);
    background: #fff;
    box-shadow: 0 2px 4px rgb(23 42 55 / 2%);
    font-family: inherit;
    font-size: .9rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.auth-page .auth-field .form-control::placeholder {
    color: #a9b2b6;
    opacity: 1;
}

.auth-page .auth-field .form-control:focus {
    border-color: #57a49d;
    outline: 0;
    box-shadow: 0 0 0 4px rgb(19 127 121 / 10%);
}

.auth-password {
    position: relative;
}

.auth-password .form-control {
    padding-right: 3.3rem;
}

.auth-password__toggle {
    position: absolute;
    top: 50%;
    right: .6rem;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    transform: translateY(-50%);
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #829197;
    background: transparent;
    cursor: pointer;
}

.auth-password__toggle:hover,
.auth-password__toggle:focus-visible {
    color: var(--auth-teal);
    background: #f0f7f6;
}

.auth-otp-input {
    letter-spacing: .12em;
}

.auth-link {
    margin-bottom: .55rem;
    color: var(--auth-teal);
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--auth-teal-dark);
    text-decoration: underline;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin-top: 1.45rem;
    color: #5e7077;
    font-size: .79rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}

.auth-back-link:hover,
.auth-back-link:focus {
    color: var(--auth-teal);
    text-decoration: none;
}

.auth-back-link svg {
    width: 17px;
    height: 17px;
}

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    margin-top: .45rem;
    border: 1px solid var(--auth-teal);
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(105deg, #137f79, #126f6b);
    box-shadow: 0 8px 18px rgb(19 127 121 / 17%);
    font-family: inherit;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    transform: translateY(-1px);
    border-color: var(--auth-teal-dark);
    color: #fff;
    background: linear-gradient(105deg, #126f6b, #0d5f5c);
    box-shadow: 0 11px 22px rgb(19 127 121 / 24%);
}

.auth-submit--link,
.auth-submit--link:hover,
.auth-submit--link:focus {
    text-decoration: none;
}

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

.auth-divider {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: 1.55rem 0 1.15rem;
    color: #97a1a5;
    font-size: .74rem;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: #e8eded;
}

.auth-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .75rem;
}

.auth-social__button {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 1px solid var(--auth-border);
    border-radius: 9px;
    color: #394b53;
    background: #fff;
    font-family: inherit;
    font-size: .83rem;
    font-weight: 600;
    transition: border-color .2s ease, background .2s ease;
}

.auth-social__button:hover,
.auth-social__button:focus {
    border-color: #b8d5d1;
    color: var(--auth-ink);
    background: #f8fbfa;
}

.auth-social__google {
    color: #4285f4;
    font-family: Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
}

.auth-social__facebook {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: end center;
    border-radius: 50%;
    color: #fff;
    background: #1877f2;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 2.3rem;
    padding-top: 1.25rem;
    border-top: 1px solid #edf0f0;
    color: #8a969b;
    font-size: .71rem;
    line-height: 1.6;
}

.auth-security-note svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--auth-teal);
}

.auth-page .preloader {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgb(13 35 43 / 42%);
    backdrop-filter: blur(3px);
}

.auth-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem 1.25rem;
    transform: translate(-50%, -50%);
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 12px;
    color: var(--auth-ink);
    background: #fff;
    box-shadow: 0 12px 40px rgb(12 35 43 / 16%);
    font-size: .85rem;
    font-weight: 600;
}

.auth-loader__spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #cfe4e1;
    border-top-color: var(--auth-teal);
    border-radius: 50%;
    animation: auth-spin .7s linear infinite;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991.98px) {
    .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    }

    .auth-visual__content {
        padding-right: clamp(2rem, 5vw, 3rem);
        padding-left: clamp(2rem, 5vw, 3rem);
    }

    .auth-visual__message h1 {
        font-size: clamp(2.45rem, 5vw, 3.3rem);
    }

    .auth-panel {
        padding-right: clamp(2rem, 5vw, 3.5rem);
        padding-left: clamp(2rem, 5vw, 3.5rem);
    }

    .auth-panel__top-note {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .auth-shell {
        display: flex;
        flex-direction: column;
    }

    .auth-visual {
        min-height: auto;
    }

    .auth-visual__content {
        min-height: auto;
        padding: 1.65rem 1.5rem 1.9rem;
    }

    .auth-brand img {
        width: 145px;
    }

    .auth-visual__message {
        padding: 2.7rem 0 1.2rem;
    }

    .auth-eyebrow {
        font-size: .62rem;
        letter-spacing: .09em;
    }

    .auth-visual__message h1 {
        max-width: 420px;
        margin: 1rem 0 .75rem;
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .auth-visual__message > p {
        max-width: 500px;
        font-size: .9rem;
        line-height: 1.65;
    }

    .auth-feature {
        margin-top: 1.45rem;
        padding: .8rem;
    }

    .auth-feature__icon {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .auth-feature strong {
        font-size: .78rem;
    }

    .auth-feature span {
        font-size: .69rem;
    }

    .auth-visual__footer {
        display: none;
    }

    .auth-panel {
        min-height: auto;
        flex: 1;
        padding: 2rem 1.5rem 2.3rem;
    }

    .auth-panel__inner {
        max-width: 500px;
    }

    .auth-panel__top {
        margin-bottom: 2.5rem;
    }

    .auth-heading {
        margin-bottom: 1.8rem;
    }

    .auth-security-note {
        margin-top: 1.7rem;
    }
}

@media (max-width: 420px) {
    .auth-visual__content {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }

    .auth-panel {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }

    .auth-feature__arrow {
        display: none;
    }

    .auth-panel__top {
        margin-bottom: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.login-page .auth-shell {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.login-page .auth-visual {
    background:
        radial-gradient(ellipse at 84% 17%, rgb(91 205 183 / 24%), transparent 31%),
        radial-gradient(ellipse at 9% 92%, rgb(61 152 160 / 23%), transparent 35%),
        linear-gradient(145deg, #102d3a 0%, #0b4248 55%, #0d5655 100%);
}

.login-page .auth-visual__content {
    max-width: 860px;
    padding-right: clamp(2.5rem, 6.4vw, 7rem);
    padding-left: clamp(2.5rem, 6.4vw, 7rem);
}

.login-page .auth-eyebrow {
    padding: .5rem .8rem;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 100px;
    background: rgb(255 255 255 / 6%);
    font-size: .68rem;
    letter-spacing: .1em;
}

.login-page .auth-visual__message h1 {
    max-width: 560px;
    margin-top: 1.7rem;
    font-size: clamp(3rem, 5.1vw, 4.65rem);
}

.login-page .auth-visual__message > p {
    max-width: 410px;
    font-size: 1rem;
}

.login-page .auth-feature {
    max-width: 430px;
    margin-top: 2.65rem;
    border-color: rgb(255 255 255 / 16%);
    background: linear-gradient(115deg, rgb(255 255 255 / 10%), rgb(255 255 255 / 5%));
}

.login-page .auth-panel {
    background:
        radial-gradient(ellipse at 100% 0%, rgb(19 127 121 / 6%), transparent 38%),
        #fbfcfc;
}

.login-page .auth-panel__inner {
    max-width: 430px;
}

.login-page .auth-panel__top {
    margin-bottom: clamp(2.8rem, 6vh, 4.5rem);
}

.login-page .auth-status {
    padding: .5rem .75rem;
    border: 1px solid #e8eeee;
    border-radius: 100px;
    background: rgb(255 255 255 / 82%);
}

.login-page .auth-panel__top-note {
    color: #89979b;
    font-size: .7rem;
    letter-spacing: .03em;
}

.login-page .auth-heading h2 {
    font-size: clamp(2.2rem, 3.4vw, 2.8rem);
}

.login-page .auth-field .form-control {
    min-height: 56px;
    border-radius: 11px;
}

.login-page .auth-submit {
    min-height: 56px;
    border-radius: 11px;
}

@media (max-width: 991.98px) {
    .login-page .auth-shell {
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    }

    .login-page .auth-visual__content {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .login-page .auth-panel {
        padding-right: 2rem;
        padding-left: 2rem;
    }

    .login-page .auth-panel__top-note {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .login-page .auth-shell {
        display: flex;
        flex-direction: column;
    }

    .login-page .auth-visual__content {
        padding: 1.65rem 1.5rem 1.9rem;
    }

    .login-page .auth-visual__message h1 {
        margin-top: 1rem;
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .login-page .auth-eyebrow {
        font-size: .59rem;
    }

    .login-page .auth-panel {
        padding: 2rem 1.5rem 2.3rem;
    }

    .login-page .auth-panel__top {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 420px) {
    .login-page .auth-visual__content,
    .login-page .auth-panel {
        padding-right: 1.15rem;
        padding-left: 1.15rem;
    }
}
