/* =============================================================================
   UNIFIED LOGIN PAGE  (.lg-)
   Loaded on top of doctorregister.css, which already supplies the shared shell:
   rg-wrap / rg-crumb / rg-hero / rg-layout / rg-side / rg-why / rg-help /
   rg-lab / rg-in / rg-eye / rg-btn.

   Only what is unique to the sign-in page lives here.
   ========================================================================== */

/* ------------------------------------------------------- layout re-balance */

/*
   The register page fills a wide column because it carries three wide steps.
   A sign-in form has two fields, so letting it stretch to the full 1fr column
   leaves enormous, unusable 1000px-wide inputs. Cap the column instead and
   let the card breathe inside it.
*/
.rg-section--login .rg-layout {
    grid-template-columns: 330px minmax(0, 560px);
    justify-content: center;
    gap: 26px;
}

.rg-section--login .rg-col {
    min-width: 0;
    display: flex;
    justify-content: center;
}

/* below 1140px the two columns no longer fit side by side comfortably */
@media (max-width: 1139px) {
    .rg-section--login .rg-layout {
        grid-template-columns: minmax(0, 560px);
        gap: 22px;
    }
}

@media (max-width: 991px) {
    .rg-section--login .rg-layout { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------- card */

.lg-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-radius);
    box-shadow: var(--rg-shadow);
    overflow: hidden;
}

.lg-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 18px 22px 16px;
    border-bottom: 1px solid var(--rg-line);
    background: linear-gradient(180deg, #fbfeff 0%, #fff 100%);
}

.lg-card__ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--rg-soft);
    color: var(--rg-teal-dark);
}

.lg-card__ico svg {
    color: var(--rg-teal-dark) !important;
    stroke: var(--rg-teal-dark) !important;
}

.lg-card__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--rg-navy);
    letter-spacing: -.3px;
    line-height: 1.25;
}

.lg-card__sub {
    margin: 3px 0 0;
    font-size: 13.5px;
    color: var(--rg-muted);
    line-height: 1.5;
}

/*
   Cap the field block so the labels and inputs form a comfortable reading
   column rather than a full-bleed strip.
*/
.lg-card__body { padding: 20px 22px 22px; }

.lg-card__body > form {
    max-width: 460px;
    margin: 0 auto;
}

/* ------------------------------------------------------------ error alert */

.rg-section--login .rg-alert { align-items: flex-start; }

.rg-section--login .rg-alert span { line-height: 1.55; }

.rg-section--login .rg-alert b { display: block; margin-bottom: 2px; }

/* the banner already says what went wrong — skip the duplicated inline note */
.rg-section--login .rg-in.is-bad + .rg-msg { display: none; }

/* --------------------------------------------------------------- remember */

.lg-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin: 14px 0 18px;
}

.lg-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.lg-check input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.lg-check__box {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #d3dde1;
    border-radius: 5px;
    background: #fff;
    color: #fff;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.lg-check__box svg {
    opacity: 0;
    transform: scale(.6);
    transition: opacity .16s ease, transform .16s ease;
}

.lg-check:hover .lg-check__box { border-color: var(--rg-teal); }

.lg-check input:checked + .lg-check__box {
    background: var(--rg-teal);
    border-color: var(--rg-teal);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--site-base) 14%, transparent);
}

.lg-check input:checked + .lg-check__box svg {
    opacity: 1;
    transform: scale(1);
}

.lg-check input:focus-visible + .lg-check__box {
    outline: 2px solid var(--rg-teal);
    outline-offset: 2px;
}

.lg-check__t {
    font-size: 14.5px;
    color: var(--rg-text);
    line-height: 1.3;
}

.lg-forgot {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--rg-teal);
    white-space: nowrap;
    transition: color .16s ease;
}

.lg-forgot:hover { color: var(--rg-teal-dark); }

/* ------------------------------------------------------------ sign-in btn */

.rg-btn--block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
}

.rg-btn--block .rg-btn__spin { margin-left: 2px; }

/* -------------------------------------------------------- divider + signup */

.lg-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 460px;
    margin: 24px auto 16px;
    color: var(--rg-muted);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}

.lg-divider::before,
.lg-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: #e6edef;
}

.lg-signup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: 460px;
    margin: 0 auto;
    padding: 12px 20px;
    border: 1.5px solid var(--rg-line);
    border-radius: 12px;
    background: #fff;
    color: var(--rg-navy);
    font-size: 15.5px;
    font-weight: 700;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

.lg-signup svg {
    color: var(--rg-teal-dark) !important;
    stroke: var(--rg-teal-dark) !important;
}

.lg-signup:hover {
    border-color: var(--rg-teal);
    background: var(--rg-soft);
    color: var(--rg-teal-dark);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 540px) {
    .lg-card__head {
        gap: 11px;
        padding: 16px 16px 14px;
    }

    .lg-card__ico { width: 36px; height: 36px; }

    .lg-card__title { font-size: 19.5px; }

    .lg-card__body { padding: 18px 16px 20px; }

    .lg-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 12px 0 16px;
    }

    .lg-divider {
        margin: 20px auto 14px;
        font-size: 12.5px;
    }
}