.ws-auth-page {
    background: #f7faf8;
}

.ws-auth-page .fi-simple-main-ctn {
    min-width: 0;
    padding: 2rem;
}

.ws-auth-page .fi-simple-main {
    width: min(78rem, 100%);
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 1.5rem 4rem rgba(28, 73, 53, .1);
    --tw-ring-color: #e2eae5;
}

.ws-auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(25rem, .92fr);
    min-height: min(46rem, calc(100vh - 4rem));
}

.ws-auth-hero,
.ws-auth-form-panel {
    min-width: 0;
}

.ws-auth-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.75rem);
    color: #134e3a;
    isolation: isolate;
}

.ws-auth-shell-user .ws-auth-hero {
    background: linear-gradient(145deg, #e8f5ee 0%, #e9f7f7 58%, #fff4d6 100%);
}

.ws-auth-shell-admin .ws-auth-hero {
    background: linear-gradient(145deg, #dcefe5 0%, #edf7f1 60%, #f7faf8 100%);
}

.ws-auth-brand {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: .75rem;
}

.ws-auth-brand-mark {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    color: #fff;
    background: #176b4a;
    border-radius: .9rem;
}

.ws-auth-brand-mark svg {
    width: 1.75rem;
    height: 1.75rem;
}

.ws-auth-brand strong,
.ws-auth-brand small {
    display: block;
}

.ws-auth-brand strong {
    color: #134e3a;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.ws-auth-brand small {
    margin-top: .1rem;
    color: #557566;
    font-size: .7rem;
    font-weight: 600;
}

.ws-auth-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 35rem;
    margin-top: clamp(2.75rem, 7vh, 5rem);
}

.ws-auth-hero-label,
.ws-auth-context {
    color: #2f7d5a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ws-auth-hero h2 {
    margin-top: .75rem;
    color: #134e3a;
    font-size: clamp(2.15rem, 3.7vw, 3.7rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
}

.ws-auth-shell-admin .ws-auth-hero h2 {
    font-size: clamp(2.1rem, 3.35vw, 3.35rem);
}

.ws-auth-hero-copy p {
    max-width: 31rem;
    margin-top: 1rem;
    color: #456a59;
    font-size: clamp(.95rem, 1.35vw, 1.08rem);
    line-height: 1.7;
}

.ws-auth-illustration {
    position: relative;
    z-index: 1;
    width: min(100%, 40rem);
    margin: auto auto -1.5rem;
}

.ws-auth-shell-admin .ws-auth-illustration {
    width: min(90%, 35rem);
    filter: saturate(.82);
}

.ws-auth-leaf {
    position: absolute;
    z-index: 0;
    width: 8rem;
    height: 4rem;
    border-radius: 100% 0 100% 0;
    background: rgba(47, 125, 90, .1);
    pointer-events: none;
}

.ws-auth-leaf-one {
    top: 4rem;
    right: -2rem;
    transform: rotate(30deg);
}

.ws-auth-leaf-two {
    bottom: 2rem;
    left: -3rem;
    transform: rotate(-20deg) scale(.75);
}

.ws-auth-form-panel {
    display: grid;
    padding: clamp(2rem, 4vw, 4rem);
    place-items: center;
    background: #fff;
}

.ws-auth-card {
    width: 100%;
    max-width: 28rem;
    padding: clamp(1.5rem, 2.5vw, 2.5rem);
    border: 1px solid #e2eae5;
    border-radius: 1.25rem;
    box-shadow: 0 .75rem 2.5rem rgba(28, 73, 53, .06);
}

.ws-auth-context {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.ws-auth-context svg,
.ws-auth-security-note svg {
    width: 1rem;
    height: 1rem;
}

.ws-auth-shell-admin .ws-auth-context {
    padding: .45rem .65rem;
    color: #176b4a;
    background: #e8f5ee;
    border-radius: 999px;
    letter-spacing: .08em;
}

.ws-auth-heading {
    margin: 1rem 0 2rem;
}

.ws-auth-heading h1 {
    color: #163e2f;
    font-size: clamp(1.75rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -.035em;
}

.ws-auth-heading p {
    margin-top: .65rem;
    color: #607269;
    line-height: 1.6;
}

.ws-auth-form {
    display: grid;
    gap: 1.5rem;
}

.ws-auth-shell .fi-fo-field-wrp-label span {
    color: #294b3d;
    font-weight: 700;
}

.ws-auth-shell .fi-input-wrp {
    min-height: 3.25rem;
    border-radius: .7rem;
    box-shadow: 0 0 0 1px #d7e2dc;
}

.ws-auth-shell .fi-input-wrp:focus-within {
    box-shadow: 0 0 0 3px rgba(47, 125, 90, .22), 0 0 0 1px #176b4a;
}

.ws-auth-shell .fi-input {
    min-height: 3.25rem;
}

.ws-auth-shell .fi-input-wrp-suffix .fi-icon-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.ws-auth-shell .fi-checkbox-input:focus-visible,
.ws-auth-shell .fi-icon-btn:focus-visible,
.ws-auth-shell .fi-btn:focus-visible {
    outline: 3px solid #2f7d5a;
    outline-offset: 2px;
}

.ws-auth-shell .fi-fo-field-wrp-error-message {
    color: #a72838;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.ws-auth-shell .fi-ac-btn-action {
    min-height: 3.25rem;
    border-radius: .7rem;
    background: #176b4a;
    font-weight: 750;
    box-shadow: none;
}

.ws-auth-shell .fi-ac-btn-action:hover {
    background: #10583d;
}

.ws-auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    margin-top: 1.5rem;
    color: #6b7d74;
    font-size: .78rem;
    text-align: center;
}

.ws-auth-register-link { margin: 1.25rem 0 0; color: #66756c; font-size: .8rem; text-align: center; }
.ws-auth-register-link a { color: #176b4a; font-weight: 800; text-decoration: none; }
.ws-auth-register-link a:hover { text-decoration: underline; }

@media (max-width: 820px) {
    .ws-auth-page .fi-simple-main-ctn {
        align-items: flex-start;
        padding: 0;
    }

    .ws-auth-page .fi-simple-main {
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }

    .ws-auth-shell {
        display: block;
        min-height: 100vh;
    }

    .ws-auth-hero {
        min-height: 14rem;
        padding: 1.5rem clamp(1.25rem, 6vw, 3rem);
    }

    .ws-auth-hero-copy {
        max-width: calc(100% - 10rem);
        margin-top: 2rem;
    }

    .ws-auth-hero h2,
    .ws-auth-shell-admin .ws-auth-hero h2 {
        font-size: clamp(1.65rem, 6vw, 2.35rem);
        line-height: 1.08;
    }

    .ws-auth-hero-copy p {
        margin-top: .6rem;
        font-size: .9rem;
        line-height: 1.5;
    }

    .ws-auth-illustration,
    .ws-auth-shell-admin .ws-auth-illustration {
        position: absolute;
        right: .75rem;
        bottom: .25rem;
        width: min(12rem, 42vw);
        margin: 0;
    }

    .ws-auth-form-panel {
        padding: 1.75rem clamp(1rem, 5vw, 2.5rem) 2.5rem;
    }

    .ws-auth-card {
        max-width: 31rem;
        padding: clamp(1.25rem, 5vw, 2rem);
    }
}

@media (max-width: 390px) {
    .ws-auth-hero {
        min-height: 12.5rem;
        padding: 1.1rem;
    }

    .ws-auth-brand-mark {
        width: 2.4rem;
        height: 2.4rem;
    }

    .ws-auth-brand small,
    .ws-auth-hero-label,
    .ws-auth-hero-copy p {
        display: none;
    }

    .ws-auth-hero-copy {
        max-width: calc(100% - 7.5rem);
        margin-top: 1.35rem;
    }

    .ws-auth-hero h2,
    .ws-auth-shell-admin .ws-auth-hero h2 {
        margin-top: 0;
        font-size: clamp(1.4rem, 7vw, 1.7rem);
    }

    .ws-auth-illustration,
    .ws-auth-shell-admin .ws-auth-illustration {
        right: .25rem;
        width: 9rem;
    }

    .ws-auth-form-panel {
        padding: 1rem .75rem 1.75rem;
    }

    .ws-auth-card {
        padding: 1.15rem;
        border-radius: 1rem;
    }

    .ws-auth-heading {
        margin-bottom: 1.4rem;
    }

    .ws-auth-heading h1 {
        font-size: 1.65rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ws-auth-shell *,
    .ws-auth-shell *::before,
    .ws-auth-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
