:root {
    --doctor-reset-primary: #1769e0;
    --doctor-reset-primary-dark: #0c4fb8;
    --doctor-reset-navy: #092142;
    --doctor-reset-navy-soft: #123766;
    --doctor-reset-surface: #ffffff;
    --doctor-reset-page: #eef4fb;
    --doctor-reset-border: #d8e3f0;
    --doctor-reset-text: #132238;
    --doctor-reset-muted: #64748b;
    --doctor-reset-success: #14804a;
    --doctor-reset-success-bg: #ecfdf3;
    --doctor-reset-danger: #c53434;
    --doctor-reset-danger-bg: #fff2f2;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body.doctor-reset-page {
    min-height: 100vh;
    margin: 0;
    color: var(--doctor-reset-text);
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(23, 105, 224, 0.13),
            transparent 30rem
        ),
        linear-gradient(135deg, #f8fbff 0%, var(--doctor-reset-page) 100%);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

.doctor-reset-shell {
    width: min(1100px, calc(100% - 40px));
    min-height: 650px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    overflow: hidden;
    border: 1px solid rgba(216, 227, 240, 0.85);
    border-radius: 28px;
    background: var(--doctor-reset-surface);
    box-shadow:
        0 30px 80px rgba(15, 35, 65, 0.15),
        0 8px 24px rgba(15, 35, 65, 0.08);
}

.doctor-reset-panel {
    position: relative;
    min-width: 0;
}

.doctor-reset-intro {
    display: flex;
    min-height: 650px;
    flex-direction: column;
    overflow: hidden;
    padding: 42px 48px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(79, 164, 255, 0.48),
            transparent 19rem
        ),
        linear-gradient(
            145deg,
            var(--doctor-reset-navy) 0%,
            var(--doctor-reset-navy-soft) 52%,
            #145fbd 100%
        );
}

.doctor-reset-intro::before,
.doctor-reset-intro::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.doctor-reset-intro::before {
    width: 360px;
    height: 360px;
    right: -180px;
    top: 120px;
}

.doctor-reset-intro::after {
    width: 240px;
    height: 240px;
    right: -90px;
    top: 180px;
}

.doctor-reset-brand {
    position: relative;
    z-index: 2;
    min-height: 62px;
}

.doctor-reset-logo-link {
    display: inline-flex;
    width: min(270px, 75%);
    height: 62px;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 25px rgba(1, 16, 38, 0.17);
}

.doctor-reset-logo {
    display: block;
    width: 100%;
    max-width: 235px;
    height: 44px;
    object-fit: contain;
    object-position: left center;
}

.doctor-reset-intro-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: auto 0;
    padding: 54px 0;
}

.doctor-reset-eyebrow,
.doctor-reset-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.doctor-reset-eyebrow {
    margin-bottom: 20px;
    color: #b8dcff;
}

.doctor-reset-intro h1 {
    max-width: 470px;
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.doctor-reset-intro-content > p {
    max-width: 480px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.03rem;
    line-height: 1.75;
}

.doctor-reset-assurance {
    display: grid;
    gap: 16px;
}

.doctor-reset-assurance > div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.doctor-reset-assurance > div > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: #cfe9ff;
    font-size: 1.05rem;
}

.doctor-reset-assurance strong,
.doctor-reset-assurance small {
    display: block;
}

.doctor-reset-assurance strong {
    margin-bottom: 3px;
    font-size: 0.96rem;
}

.doctor-reset-assurance small {
    color: rgba(255, 255, 255, 0.67);
    line-height: 1.45;
}

.doctor-reset-decoration {
    position: absolute;
    z-index: 1;
    right: 34px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.07);
    font-size: 10rem;
    transform: rotate(-8deg);
}

.doctor-reset-form-panel {
    display: grid;
    min-height: 650px;
    place-items: center;
    padding: 52px;
    background:
        linear-gradient(
            180deg,
            rgba(248, 251, 255, 0.45),
            #ffffff
        );
}

.doctor-reset-card {
    width: 100%;
    max-width: 440px;
}

.doctor-reset-card-heading {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.doctor-reset-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 19px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--doctor-reset-primary),
            #38a2ff
        );
    box-shadow: 0 14px 30px rgba(23, 105, 224, 0.25);
    font-size: 1.35rem;
}

.doctor-reset-kicker {
    margin-bottom: 6px;
    color: var(--doctor-reset-primary);
    font-size: 0.7rem;
}

.doctor-reset-card h2 {
    margin: 0;
    color: #0b1930;
    font-size: clamp(2rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.doctor-reset-card-heading p {
    margin: 10px 0 0;
    color: var(--doctor-reset-muted);
    line-height: 1.6;
}

.doctor-reset-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.9rem;
}

.doctor-reset-alert i {
    margin-top: 3px;
}

.doctor-reset-alert strong,
.doctor-reset-alert span {
    display: block;
}

.doctor-reset-alert strong {
    margin-bottom: 2px;
}

.doctor-reset-alert span {
    line-height: 1.5;
}

.doctor-reset-alert.is-success {
    border-color: #b7ebca;
    color: var(--doctor-reset-success);
    background: var(--doctor-reset-success-bg);
}

.doctor-reset-alert.is-error {
    border-color: #ffcaca;
    color: var(--doctor-reset-danger);
    background: var(--doctor-reset-danger-bg);
}

.doctor-reset-form {
    display: grid;
    gap: 20px;
}

.doctor-reset-field label {
    display: block;
    margin-bottom: 9px;
    color: #172a46;
    font-size: 0.91rem;
    font-weight: 700;
}

.doctor-reset-input-wrap {
    position: relative;
}

.doctor-reset-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: #6e829d;
    transform: translateY(-50%);
    pointer-events: none;
}

.doctor-reset-input-wrap input {
    display: block;
    width: 100%;
    height: 54px;
    padding: 0 17px 0 48px;
    border: 1px solid var(--doctor-reset-border);
    border-radius: 13px;
    outline: none;
    color: #172a46;
    background: #ffffff;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.doctor-reset-input-wrap input::placeholder {
    color: #9aaabc;
}

.doctor-reset-input-wrap input:hover {
    border-color: #b3c8e1;
}

.doctor-reset-input-wrap input:focus {
    border-color: #4b93ef;
    background: #fbfdff;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, 0.12);
}

.doctor-reset-field small {
    display: block;
    margin-top: 8px;
    color: #7a8da4;
    font-size: 0.78rem;
    line-height: 1.45;
}

.doctor-reset-submit {
    display: inline-flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--doctor-reset-primary),
            #2088f3
        );
    box-shadow: 0 14px 28px rgba(23, 105, 224, 0.22);
    font: inherit;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;
}

.doctor-reset-submit:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 17px 32px rgba(23, 105, 224, 0.28);
}

.doctor-reset-submit:active {
    transform: translateY(0);
}

.doctor-reset-submit:focus-visible,
.doctor-reset-back:focus-visible,
.doctor-reset-logo-link:focus-visible {
    outline: 3px solid rgba(23, 105, 224, 0.25);
    outline-offset: 3px;
}

.doctor-reset-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    color: #8a9aaf;
    font-size: 0.78rem;
    white-space: nowrap;
}

.doctor-reset-divider::before,
.doctor-reset-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: #e3ebf4;
}

.doctor-reset-back {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #cfdceb;
    border-radius: 13px;
    color: #174f97;
    background: #f8fbff;
    font-weight: 700;
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        color 0.18s ease,
        background 0.18s ease;
}

.doctor-reset-back:hover {
    border-color: #87b9f2;
    color: var(--doctor-reset-primary-dark);
    background: #edf6ff;
}

.doctor-reset-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    color: #8292a7;
    font-size: 0.76rem;
    text-align: center;
}

@media (max-width: 900px) {
    .doctor-reset-shell {
        width: min(620px, calc(100% - 28px));
        min-height: auto;
        margin: 22px auto;
        grid-template-columns: 1fr;
        border-radius: 24px;
    }

    .doctor-reset-intro {
        min-height: auto;
        padding: 28px 30px 34px;
    }

    .doctor-reset-intro-content {
        margin: 0;
        padding: 34px 0 4px;
    }

    .doctor-reset-intro h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    .doctor-reset-assurance {
        display: none;
    }

    .doctor-reset-decoration {
        right: 16px;
        bottom: -36px;
        font-size: 8rem;
    }

    .doctor-reset-form-panel {
        min-height: auto;
        padding: 38px 32px 42px;
    }
}

@media (max-width: 520px) {
    body.doctor-reset-page {
        background: #f3f7fc;
    }

    .doctor-reset-shell {
        width: 100%;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .doctor-reset-intro {
        padding: 22px 20px 28px;
        border-radius: 0 0 28px 28px;
    }

    .doctor-reset-brand {
        min-height: 54px;
    }

    .doctor-reset-logo-link {
        width: min(240px, 82%);
        height: 54px;
        padding: 7px 12px;
    }

    .doctor-reset-logo {
        height: 38px;
    }

    .doctor-reset-intro-content {
        padding: 28px 0 2px;
    }

    .doctor-reset-eyebrow {
        margin-bottom: 14px;
    }

    .doctor-reset-intro h1 {
        max-width: 310px;
        font-size: 2rem;
    }

    .doctor-reset-intro-content > p {
        margin: 16px 0 0;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .doctor-reset-form-panel {
        padding: 28px 20px 38px;
        background: transparent;
    }

    .doctor-reset-card {
        max-width: none;
    }

    .doctor-reset-card-heading {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 24px;
    }

    .doctor-reset-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
        font-size: 1.1rem;
    }

    .doctor-reset-card h2 {
        font-size: 1.85rem;
    }

    .doctor-reset-card-heading p {
        font-size: 0.9rem;
    }

    .doctor-reset-input-wrap input,
    .doctor-reset-submit {
        min-height: 52px;
    }

    .doctor-reset-divider {
        margin-top: 24px;
    }
}

@media (max-width: 360px) {
    .doctor-reset-intro {
        padding-right: 16px;
        padding-left: 16px;
    }

    .doctor-reset-form-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .doctor-reset-card-heading {
        grid-template-columns: 1fr;
    }

    .doctor-reset-divider span {
        white-space: normal;
        text-align: center;
    }
}

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