:root {
    --doctor-primary: #1769e0;
    --doctor-primary-dark: #0d47a1;
    --doctor-navy: #0b1f3a;
    --doctor-text: #172033;
    --doctor-muted: #68758b;
    --doctor-border: #dce4ef;
    --doctor-surface: #ffffff;
    --doctor-background: #eef4fb;
}

* {
    box-sizing: border-box;
}

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

.doctor-login-body {
    margin: 0;
    color: var(--doctor-text);
    background:
        radial-gradient(circle at 8% 12%, rgba(23, 105, 224, .10), transparent 28%),
        radial-gradient(circle at 92% 88%, rgba(11, 31, 58, .08), transparent 30%),
        var(--doctor-background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.doctor-login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.doctor-login-shell {
    width: min(100%, 980px);
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(320px, .92fr) minmax(390px, 1.08fr);
    overflow: hidden;
    border: 1px solid rgba(205, 218, 234, .9);
    border-radius: 28px;
    background: var(--doctor-surface);
    box-shadow: 0 30px 80px rgba(21, 46, 82, .16);
}

.doctor-login-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 58px 44px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(8, 30, 66, .97), rgba(23, 105, 224, .92));
}

.doctor-visual-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}

.doctor-visual-shape-one {
    width: 330px;
    height: 330px;
    top: -145px;
    right: -120px;
}

.doctor-visual-shape-two {
    width: 250px;
    height: 250px;
    bottom: -110px;
    left: -90px;
}

.doctor-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.doctor-visual-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.doctor-illustration {
    position: relative;
    width: 184px;
    height: 184px;
    display: grid;
    place-items: center;
    margin: 50px auto 38px;
}

.doctor-illustration-ring {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, .05),
        0 0 0 38px rgba(255, 255, 255, .025);
}

.doctor-illustration-icon {
    width: 124px;
    height: 124px;
    display: grid;
    place-items: center;
    border-radius: 38px;
    color: var(--doctor-primary-dark);
    background: #fff;
    box-shadow: 0 24px 55px rgba(1, 16, 40, .28);
    transform: rotate(-3deg);
}

.doctor-illustration-icon i {
    font-size: 61px;
    transform: rotate(3deg);
}

.doctor-visual-content h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.doctor-visual-content > p {
    max-width: 310px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .80);
    font-size: 15px;
    line-height: 1.75;
}

.doctor-security-points {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 37px;
}

.doctor-security-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    font-weight: 600;
}

.doctor-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px clamp(38px, 6vw, 72px);
}


.doctor-login-brand {
    display: inline-flex;
    width: fit-content;
    max-width: 210px;
    height: 48px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 27px;
    padding: 6px 10px;
    border: 1px solid #dde7f2;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(18, 47, 82, .08);
    text-decoration: none;
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.doctor-login-brand:hover {
    border-color: #b9d2ef;
    box-shadow: 0 11px 26px rgba(18, 47, 82, .12);
    transform: translateY(-1px);
}

.doctor-login-brand:focus-visible {
    outline: 3px solid rgba(23, 105, 224, .20);
    outline-offset: 3px;
}

.doctor-login-brand img {
    display: block;
    width: auto;
    max-width: 188px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}

.doctor-mobile-icon {
    display: none;
}

.doctor-login-heading {
    margin-bottom: 34px;
}

.doctor-login-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: var(--doctor-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.doctor-login-heading h1 {
    margin: 0;
    color: var(--doctor-navy);
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -.045em;
}

.doctor-login-heading p {
    margin: 11px 0 0;
    color: var(--doctor-muted);
    font-size: 15px;
}

.doctor-login-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

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

.doctor-login-alert.error {
    color: #a91d2f;
    border-color: #f3c4cb;
    background: #fff1f3;
}

.doctor-login-alert.warning {
    color: #865109;
    border-color: #f0d39b;
    background: #fff8e8;
}

.doctor-login-form {
    display: grid;
    gap: 22px;
}

.doctor-field label {
    display: inline-block;
    margin-bottom: 9px;
    color: #27344a;
    font-size: 14px;
    font-weight: 700;
}

.doctor-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.doctor-label-row a {
    margin-bottom: 9px;
    color: var(--doctor-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.doctor-label-row a:hover {
    text-decoration: underline;
}

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

.doctor-input-wrap > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 17px;
    color: #8995a9;
    font-size: 15px;
    transform: translateY(-50%);
    pointer-events: none;
}

.doctor-input-wrap .form-control {
    width: 100%;
    height: 54px;
    padding: 12px 48px 12px 46px;
    border: 1px solid var(--doctor-border);
    border-radius: 13px;
    color: var(--doctor-text);
    background: #fbfdff;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.doctor-input-wrap .form-control::placeholder {
    color: #9aa6b8;
}

.doctor-input-wrap .form-control:focus {
    border-color: rgba(23, 105, 224, .70);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, .11);
}

.doctor-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #77849a;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.doctor-password-toggle:hover,
.doctor-password-toggle:focus-visible {
    color: var(--doctor-primary);
    background: #edf4ff;
    outline: none;
}

.doctor-login-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 3px;
    padding: 13px 20px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--doctor-primary), #0a55be);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 14px 28px rgba(23, 105, 224, .24);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}

.doctor-login-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 17px 34px rgba(23, 105, 224, .31);
}

.doctor-login-button:active {
    transform: translateY(0);
}

.doctor-login-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 31px;
    color: #7a879a;
    font-size: 12px;
}

.doctor-login-footer i {
    color: #2f8e69;
}

@media (max-width: 820px) {
    .doctor-login-page {
        padding: 22px;
    }

    .doctor-login-shell {
        width: min(100%, 520px);
        min-height: auto;
        display: block;
        border-radius: 24px;
    }

    .doctor-login-visual {
        display: none;
    }

    .doctor-login-panel {
        padding: 48px 38px 40px;
    }

    .doctor-mobile-icon {
        width: 72px;
        height: 72px;
        display: grid;
        place-items: center;
        margin-bottom: 25px;
        border-radius: 22px;
        color: #fff;
        background: linear-gradient(145deg, var(--doctor-primary), var(--doctor-primary-dark));
        box-shadow: 0 15px 30px rgba(23, 105, 224, .24);
    }

    .doctor-mobile-icon i {
        font-size: 31px;
    }
}

@media (max-width: 480px) {
    .doctor-login-page {
        min-height: 100svh;
        align-items: start;
        padding: 14px;
    }

    .doctor-login-shell {
        margin: 12px 0;
        border-radius: 20px;
        box-shadow: 0 18px 46px rgba(21, 46, 82, .14);
    }

    .doctor-login-panel {
        padding: 35px 22px 28px;
    }

    .doctor-mobile-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 21px;
        border-radius: 19px;
    }

    .doctor-mobile-icon i {
        font-size: 27px;
    }

    .doctor-login-heading {
        margin-bottom: 27px;
    }

    .doctor-login-heading h1 {
        font-size: 34px;
    }

    .doctor-label-row {
        align-items: flex-end;
    }

    .doctor-input-wrap .form-control,
    .doctor-login-button {
        height: 52px;
        min-height: 52px;
    }

    .doctor-login-footer {
        margin-top: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 720px) {
    .doctor-login-brand {
        max-width: 180px;
        height: 44px;
        margin: 0 auto 22px;
        padding: 5px 9px;
    }

    .doctor-login-brand img {
        max-width: 158px;
        height: 31px;
    }
}

@media (max-width: 380px) {
    .doctor-login-brand {
        max-width: 164px;
        height: 42px;
    }

    .doctor-login-brand img {
        max-width: 144px;
        height: 29px;
    }
}


/* =========================================================
   Doctor Login Visual Polish - 2026-08-14
   Keeps authentication behavior unchanged.
   ========================================================= */

.doctor-login-shell {
    width: min(100%, 1030px);
    min-height: 640px;
    grid-template-columns: minmax(350px, .96fr) minmax(420px, 1.04fr);
}

.doctor-login-panel {
    position: relative;
    padding: 58px clamp(42px, 5.8vw, 72px);
}

/* Larger, better-balanced website branding */
.doctor-login-brand {
    width: 100%;
    max-width: 270px;
    height: 72px;
    margin-bottom: 26px;
    padding: 9px 16px;
    justify-content: center;
    border-color: #d8e4f1;
    border-radius: 16px;
    box-shadow:
        0 10px 26px rgba(18, 47, 82, .09),
        inset 0 1px 0 rgba(255,255,255,.8);
}

.doctor-login-brand img {
    width: auto;
    max-width: 238px;
    height: 50px;
    object-fit: contain;
    object-position: center;
}

.doctor-login-brand:hover {
    border-color: #b6d2f2;
    box-shadow:
        0 14px 32px rgba(18, 47, 82, .13),
        inset 0 1px 0 rgba(255,255,255,.9);
}

/* Stronger visual hierarchy */
.doctor-login-heading {
    margin-bottom: 31px;
}

.doctor-login-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .13em;
}

.doctor-login-heading h1 {
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.08;
}

.doctor-login-heading p {
    margin-top: 10px;
    font-size: 14.5px;
    line-height: 1.6;
}

.doctor-login-form {
    gap: 20px;
}

.doctor-field label {
    margin-bottom: 8px;
}

.doctor-input-wrap .form-control {
    height: 56px;
    border-radius: 14px;
    background: #f8fbff;
}

.doctor-input-wrap .form-control:hover {
    border-color: #c8d7e8;
}

.doctor-login-button {
    min-height: 56px;
    border-radius: 14px;
    box-shadow: 0 13px 27px rgba(23, 105, 224, .22);
}

.doctor-login-secondary {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e4ebf3;
}

.doctor-forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--doctor-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.doctor-forgot-link i {
    font-size: 11px;
}

.doctor-forgot-link:hover,
.doctor-forgot-link:focus-visible {
    color: var(--doctor-primary-dark);
    text-decoration: underline;
}

.doctor-login-footer {
    margin-top: 27px;
    padding: 12px 14px;
    border: 1px solid #e4efe9;
    border-radius: 12px;
    background: #f8fcfa;
}

/* Left visual panel polish */
.doctor-login-visual {
    padding: 58px 46px;
}

.doctor-visual-badge {
    min-height: 38px;
    padding: 8px 15px;
}

.doctor-illustration {
    width: 190px;
    height: 190px;
    margin: 48px auto 38px;
}

.doctor-illustration-icon {
    width: 128px;
    height: 128px;
}

.doctor-security-points {
    margin-top: 34px;
}

/* Tablet: preserve the clean single-panel layout and retain larger branding */
@media (max-width: 820px) {
    .doctor-login-shell {
        width: min(100%, 540px);
    }

    .doctor-login-panel {
        padding: 46px 38px 38px;
    }

    .doctor-login-brand {
        max-width: 255px;
        height: 68px;
        margin: 0 auto 24px;
    }

    .doctor-login-brand img {
        max-width: 224px;
        height: 47px;
    }

    .doctor-mobile-icon {
        margin-left: auto;
        margin-right: auto;
    }

    .doctor-login-heading {
        text-align: center;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .doctor-login-panel {
        padding: 30px 20px 26px;
    }

    .doctor-login-brand {
        max-width: 230px;
        height: 62px;
        padding: 8px 13px;
        border-radius: 14px;
    }

    .doctor-login-brand img {
        max-width: 202px;
        height: 43px;
    }

    .doctor-login-heading h1 {
        font-size: 34px;
    }

    .doctor-login-heading p {
        font-size: 14px;
    }

    .doctor-login-secondary {
        text-align: center;
    }
}

/* Override the legacy narrow-logo rules at the bottom of the original sheet */
@media (max-width: 720px) {
    .doctor-login-brand {
        max-width: 245px;
        height: 66px;
        margin: 0 auto 23px;
        padding: 8px 14px;
    }

    .doctor-login-brand img {
        max-width: 215px;
        height: 45px;
    }
}

@media (max-width: 380px) {
    .doctor-login-brand {
        max-width: 220px;
        height: 60px;
    }

    .doctor-login-brand img {
        max-width: 194px;
        height: 41px;
    }
}
