:root {
    --auth-ink: #172033;
    --auth-muted: #718096;
    --auth-primary: #4458f6;
    --auth-primary-dark: #3145dc;
    --auth-line: #e7ebf3;
}

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

body.auth-login-body {
    margin: 0;
    background: #f4f7fb;
    color: var(--auth-ink);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.auth-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 4vw, 3.5rem);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 10%, rgba(68, 88, 246, .10), transparent 28rem),
        radial-gradient(circle at 90% 90%, rgba(36, 191, 176, .10), transparent 26rem),
        #f4f7fb;
}

.auth-login-page::before,
.auth-login-page::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(68, 88, 246, .08);
    border-radius: 50%;
    pointer-events: none;
}

.auth-login-page::before {
    width: 30rem;
    height: 30rem;
    top: -18rem;
    right: -10rem;
}

.auth-login-page::after {
    width: 22rem;
    height: 22rem;
    bottom: -15rem;
    left: -8rem;
}

.auth-login-shell {
    width: min(100%, 980px);
    min-height: 590px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 1px solid rgba(30, 42, 70, .08);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(35, 49, 85, .14);
}

.auth-login-brand-panel {
    display: flex;
    flex-direction: column;
    padding: clamp(2rem, 5vw, 4rem);
    color: #fff;
    position: relative;
    isolation: isolate;
    background: linear-gradient(145deg, #273cae 0%, #4458f6 55%, #25b7aa 150%);
}

.auth-login-brand-panel::after {
    content: "";
    position: absolute;
    width: 24rem;
    height: 24rem;
    right: -10rem;
    bottom: -12rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 2rem rgba(255, 255, 255, .04), 0 0 0 5rem rgba(255, 255, 255, .03);
    z-index: -1;
}

.auth-login-brand img {
    display: block;
    width: auto;
    max-width: 100%;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}

.auth-login-brand-content {
    margin: auto 0;
    max-width: 370px;
}

.auth-login-eyebrow,
.auth-login-mobile-label {
    display: inline-block;
    color: inherit;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.auth-login-eyebrow {
    margin-bottom: 1.25rem;
    opacity: .75;
}

.auth-login-brand-content h1 {
    margin: 0 0 1.2rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.auth-login-brand-content p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1rem;
    line-height: 1.75;
}

.auth-login-brand-footer {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .72);
    font-size: .78rem;
}

.auth-login-status-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #6ff0b7;
    box-shadow: 0 0 0 .3rem rgba(111, 240, 183, .14);
}

.auth-login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 4.5rem);
    background: #fff;
}

.auth-login-card-header {
    margin-bottom: 2rem;
}

.auth-login-mobile-label {
    margin-bottom: .7rem;
    color: var(--auth-primary);
}

.auth-login-card-header h2 {
    margin: 0 0 .65rem;
    color: var(--auth-ink);
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    font-weight: 700;
    letter-spacing: -.035em;
}

.auth-login-card-header p,
.auth-login-help,
.auth-login-copyright {
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-login-card-header p {
    margin: 0;
    font-size: .92rem;
}

.auth-login-alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin: -.5rem 0 1.3rem;
    padding: .85rem 1rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: .83rem;
    line-height: 1.55;
}

.auth-login-alert i {
    flex: 0 0 auto;
    margin-top: .1rem;
    font-size: 1.1rem;
}

.auth-login-alert--error {
    border-color: #f5c6cb;
    background: #fff5f5;
    color: #a3202c;
}

.auth-login-alert--success {
    border-color: #b9e6d2;
    background: #f2fcf7;
    color: #18794e;
}

.auth-login-form {
    display: grid;
    gap: 1.2rem;
}

.auth-login-field label {
    display: block;
    margin-bottom: .55rem;
    color: #344054;
    font-size: .82rem;
    font-weight: 700;
}

.auth-login-input-wrap {
    display: flex;
    align-items: center;
    min-height: 52px;
    border: 1px solid var(--auth-line);
    border-radius: 12px;
    background: #fbfcfe;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-login-input-wrap:focus-within {
    border-color: rgba(68, 88, 246, .75);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68, 88, 246, .11);
}

.auth-login-input-wrap > i {
    margin: 0 .8rem 0 1rem;
    color: #98a2b3;
    font-size: 1.15rem;
}

.auth-login-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 .85rem 0 0;
    border: 0;
    outline: 0;
    color: var(--auth-ink);
    background: transparent;
    font: inherit;
    font-size: .9rem;
}

.auth-login-input-wrap input::placeholder {
    color: #a7b0c0;
}

.auth-login-password-toggle {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-right: .35rem;
    place-items: center;
    border: 0;
    border-radius: 9px;
    color: #8c96a8;
    background: transparent;
    cursor: pointer;
    font-size: 1.1rem;
}

.auth-login-password-toggle:hover,
.auth-login-password-toggle:focus-visible {
    color: var(--auth-primary);
    background: #eef1ff;
    outline: 0;
}

.auth-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 52px;
    margin-top: .35rem;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(110deg, var(--auth-primary), #596cf8);
    box-shadow: 0 10px 20px rgba(68, 88, 246, .2);
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-login-submit:hover,
.auth-login-submit:focus-visible {
    background: linear-gradient(110deg, var(--auth-primary-dark), var(--auth-primary));
    box-shadow: 0 13px 24px rgba(68, 88, 246, .28);
    outline: 0;
    transform: translateY(-1px);
}

.auth-login-submit:disabled {
    cursor: wait;
    opacity: .75;
    transform: none;
}

.auth-login-help {
    margin: 1.6rem 0 0;
    text-align: center;
    font-size: .78rem;
}

.auth-login-copyright {
    margin: 2.3rem 0 0;
    text-align: center;
    font-size: .72rem;
}

@media (max-width: 767.98px) {
    .auth-login-page {
        padding: 1rem;
    }

    .auth-login-shell {
        display: block;
        min-height: 0;
        border-radius: 22px;
    }

    .auth-login-brand-panel {
        min-height: 190px;
        padding: 1.7rem 1.5rem;
    }

    .auth-login-brand-content {
        margin: 2.5rem 0 0;
    }

    .auth-login-brand-content h1 {
        max-width: 520px;
        margin-bottom: 0;
        font-size: 1.55rem;
    }

    .auth-login-brand-content p,
    .auth-login-brand-footer {
        display: none;
    }

    .auth-login-card {
        padding: 2rem 1.5rem 1.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-login-input-wrap,
    .auth-login-submit {
        transition: none;
    }
}
