﻿:root {
    --auth-blue: #0873e7;
    --auth-blue-dark: #0756b7;
    --auth-green: #13a87a;
    --auth-ink: #10233f;
    --auth-muted: #68768c;
    --auth-border: #dfe7f1
}

.auth-premium-shell, .auth-single-shell {
    min-height: calc(100vh - 84px);
    padding: 32px 20px;
    background: radial-gradient(circle at 12% 10%,rgba(19,168,122,.16),transparent 30%),radial-gradient(circle at 88% 0,rgba(8,115,231,.16),transparent 34%),#f5f9fe
}

.auth-premium-grid {
    width: min(1180px,100%);
    min-height: 700px;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(390px,.9fr) minmax(480px,1.1fr);
    overflow: hidden;
    border: 1px solid rgba(31,68,111,.11);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(22,55,94,.15)
}

.auth-story-panel {
    position: relative;
    padding: 42px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg,rgba(4,57,116,.94),rgba(8,115,231,.88)),url('/images/healthcare-learning.jpg') center/cover
}

    .auth-story-panel.register {
        background: linear-gradient(145deg,rgba(3,65,91,.94),rgba(19,168,122,.88)),url('/images/healthcare-experts.jpg') center/cover
    }

    .auth-story-panel:after {
        content: "";
        position: absolute;
        width: 330px;
        height: 330px;
        right: -120px;
        bottom: -140px;
        border: 70px solid rgba(255,255,255,.08);
        border-radius: 50%
    }

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #fff;
    text-decoration: none
}

    .auth-brand img {
        width: 54px;
        height: 54px;
        object-fit: contain;
        padding: 5px;
        border-radius: 15px;
        background: #fff
    }

    .auth-brand span {
        display: flex;
        flex-direction: column
    }

    .auth-brand strong {
        font-size: .87rem;
        letter-spacing: .04em
    }

    .auth-brand small {
        margin-top: 3px;
        font-size: .62rem;
        letter-spacing: .15em;
        opacity: .75
    }

.auth-story-content {
    position: relative;
    z-index: 1;
    margin: auto 0
}

.auth-eyebrow {
    display: inline-flex;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase
}

.auth-story-content h1 {
    max-width: 520px;
    margin: 24px 0 18px;
    font-size: clamp(2.3rem,4vw,4rem);
    font-weight: 850;
    line-height: 1.04;
    letter-spacing: -.05em
}

.auth-story-content > p {
    max-width: 500px;
    margin: 0;
    color: rgba(255,255,255,.79);
    font-size: 1rem;
    line-height: 1.75
}

.auth-trust-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-size: .84rem;
    font-weight: 700
}

    .auth-trust-row span {
        display: flex;
        align-items: center;
        gap: 8px
    }

.auth-benefits {
    display: grid;
    gap: 13px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none
}

    .auth-benefits li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 650
    }

    .auth-benefits i {
        display: grid;
        place-items: center;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        background: rgba(255,255,255,.16)
    }

.auth-form-panel {
    display: grid;
    place-items: center;
    padding: clamp(28px,5vw,64px)
}

.auth-form-card {
    width: min(440px,100%)
}

    .auth-form-card.wide {
        width: min(600px,100%)
    }

.auth-heading {
    text-align: center;
    margin-bottom: 28px
}

.auth-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 1.45rem;
    background: linear-gradient(145deg,var(--auth-blue),var(--auth-green));
    box-shadow: 0 14px 28px rgba(8,115,231,.2)
}

.auth-heading h2, .state-card h2 {
    margin: 0;
    color: var(--auth-ink);
    font-size: clamp(1.8rem,3vw,2.4rem);
    font-weight: 850;
    letter-spacing: -.04em
}

.auth-heading p, .state-card > p {
    margin: 9px auto 0;
    color: var(--auth-muted);
    line-height: 1.65
}

.auth-field {
    margin-bottom: 18px
}

    .auth-field label {
        display: block;
        margin-bottom: 8px;
        color: var(--auth-ink);
        font-size: .86rem;
        font-weight: 750
    }

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between
}

    .auth-label-row a {
        margin-bottom: 8px;
        color: var(--auth-blue);
        font-size: .82rem;
        font-weight: 700;
        text-decoration: none
    }

.auth-input-wrap {
    position: relative
}

    .auth-input-wrap > i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #8492a8
    }

    .auth-input-wrap input {
        width: 100%;
        height: 52px;
        padding: 0 46px;
        border: 1px solid var(--auth-border);
        border-radius: 14px;
        color: var(--auth-ink);
        background: #fbfdff;
        outline: none
    }

        .auth-input-wrap input:focus {
            border-color: rgba(8,115,231,.65);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(8,115,231,.1)
        }

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 38px;
    height: 38px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 10px;
    color: #77869b;
    background: transparent
}

    .password-toggle:hover {
        color: var(--auth-blue);
        background: #edf5ff
    }

.auth-field > span, .field-validation-error {
    display: block;
    margin-top: 6px;
    color: #dc3545;
    font-size: .76rem
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 5px 0 22px;
    color: var(--auth-muted);
    font-size: .84rem;
    line-height: 1.5
}

    .auth-check input {
        width: 17px;
        height: 17px;
        margin-top: 2px;
        accent-color: var(--auth-blue)
    }

    .auth-check a {
        color: var(--auth-blue);
        font-weight: 700
    }

.auth-submit {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 14px;
    color: #fff !important;
    background: linear-gradient(135deg,var(--auth-blue),var(--auth-blue-dark));
    box-shadow: 0 13px 26px rgba(8,115,231,.22);
    font-weight: 800;
    text-decoration: none
}

    .auth-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 17px 34px rgba(8,115,231,.28)
    }

.auth-switch {
    margin: 24px 0 0;
    text-align: center;
    color: var(--auth-muted);
    font-size: .88rem
}

    .auth-switch a {
        color: var(--auth-blue);
        font-weight: 800;
        text-decoration: none
    }

.auth-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.password-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -4px 0 17px;
    padding: 11px 13px;
    border-radius: 11px;
    color: #53657e;
    background: #f1f6fb;
    font-size: .76rem;
    line-height: 1.45
}

    .password-hint i {
        color: var(--auth-green)
    }

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .83rem;
    line-height: 1.5
}

    .auth-alert:empty {
        display: none
    }

    .auth-alert ul {
        margin: 0;
        padding-left: 18px
    }

    .auth-alert.error {
        color: #a52732;
        background: #fff1f2;
        border: 1px solid #ffd5d9
    }

    .auth-alert.success {
        color: #08714f;
        background: #eafaf4;
        border: 1px solid #c5f0e0
    }

    .auth-alert.warning {
        color: #72520b;
        background: #fff8e4;
        border: 1px solid #f5e3a9
    }

    .auth-alert a {
        font-weight: 800
    }

.auth-single-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 84px)
}

.auth-form-card.compact {
    width: min(500px,100%);
    padding: clamp(30px,6vw,52px);
    border: 1px solid rgba(31,68,111,.11);
    border-radius: 27px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 70px rgba(22,55,94,.13)
}

.auth-compact-brand {
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 24px
}

    .auth-compact-brand img {
        width: 100%;
        height: 100%;
        object-fit: contain
    }

.state-card {
    text-align: center
}

.state-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 23px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(145deg,var(--auth-green),#08785b);
    box-shadow: 0 16px 32px rgba(19,168,122,.22)
}

    .state-icon.danger {
        background: linear-gradient(145deg,#f36b75,#c92e42)
    }

.state-card .auth-submit {
    margin-top: 28px
}

@media(max-width:900px) {
    .auth-premium-grid {
        grid-template-columns: 1fr;
        min-height: auto
    }

    .auth-story-panel {
        min-height: 390px
    }

    .auth-story-content h1 {
        font-size: 2.65rem
    }

    .auth-form-panel {
        padding: 44px 24px
    }
}

@media(max-width:580px) {
    .auth-premium-shell, .auth-single-shell {
        padding: 14px
    }

    .auth-premium-grid {
        border-radius: 22px
    }

    .auth-story-panel {
        min-height: 330px;
        padding: 26px
    }

    .auth-brand small {
        display: none
    }

    .auth-story-content h1 {
        font-size: 2.15rem
    }

    .auth-trust-row {
        display: none
    }

    .auth-form-panel {
        padding: 34px 20px
    }

    .auth-two-cols {
        grid-template-columns: 1fr;
        gap: 0
    }

    .auth-form-card.compact {
        padding: 30px 22px;
        border-radius: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important
    }
}

.auth-story-panel {
    background-image: linear-gradient(145deg,rgba(4,57,116,.94),rgba(8,115,231,.88)),url('/images/home-carousel/healthcare-learning.jpg')
}

    .auth-story-panel.register {
        background-image: linear-gradient(145deg,rgba(3,65,91,.94),rgba(19,168,122,.88)),url('/images/home-carousel/healthcare-experts.jpg')
    }
