:root {
    --navy: #073b6d;
    --blue: #0a72b8;
    --ink: #172033;
    --muted: #637083;
    --line: #dfe7f1;
    --white: #ffffff;
}

* { box-sizing: border-box; }

body.login-page {
    min-height: 100vh;
    margin: 0;
    padding: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
    color: var(--ink);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background:
    /*
		linear-gradient(
        115deg,
        rgba(0, 61, 61, .92),
        rgba(0, 121, 107, .72)
    ),
	*/	
    url("../image/background.png") center / cover fixed;
}

.login-shell {
    width: min(1060px, 100%);
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 28px 80px rgba(1, 20, 39, .38);
}

.welcome-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 7vw, 78px);
    overflow: hidden;
    color: var(--ink);
    background: linear-gradient(150deg, #75DDD0 0%, #36B8AA 100%);
}

.welcome-panel::after {
    position: absolute;
    right: -180px;
    bottom: -210px;
    width: 480px;
    height: 480px;
    border: 56px solid rgba(130, 217, 255, .12);
    border-radius: 50%;
    content: "";
}

.welcome-panel > * { position: relative; z-index: 1; }

.brand-lockup {
    width: fit-content;
    padding: 8px 10px;
    margin-bottom: 34px;
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 8px 18px rgba(2, 24, 48, .20);
}

.brand-lockup img { display: block; width: min(265px, 100%); height: auto; }

.eyebrow {
    margin: 0 0 9px;
    color: #000000;
    font-size: .99rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.eyebrow-dark { color: var(--teal); }
.welcome-panel h1, .sign-in-panel h2 { margin: 0; letter-spacing: -.035em; }

.welcome-panel h1 {
    max-width: 480px;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.12;
}

.welcome-copy {
    max-width: 465px;
    margin: 18px 0 30px;
    color: #268899;
    font-size: 1rem;
    line-height: 1.65;
}

.instruction-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 13px;
    max-width: 480px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    background: rgba(1, 29, 57, .23);
    backdrop-filter: blur(5px);
}

.instruction-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    font-family: Georgia, serif;
    font-weight: 800;
    background: #b7edff;
}

.instruction-card h2 { margin: 0 0 8px; font-size: .88rem; }
.instruction-card p { margin: 4px 0; color: #000000 ; font-size: .83rem; line-height: 1.45; }
.instruction-card .example { margin-top: 9px; color: #000000 ; font-weight: 700; }

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 28px;
    color: #000000;
    font-size: .78rem;
}

.trust-row span {
    display: inline-grid;
    width: 17px;
    height: 17px;
    margin-right: 4px;
    place-items: center;
    border-radius: 50%;
    color: var(--navy);
    font-size: .65rem;
    font-weight: 900;
    background: #b7edff;
}

.sign-in-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(38px, 6vw, 72px);
    background: var(--white);
}

.sign-in-content { width: min(410px, 100%); margin: 0 auto; }
.sign-in-panel h2 { font-size: 2rem; line-height: 1.2; }
.sign-in-subtitle { margin: 12px 0 30px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.login-form { display: grid; gap: 9px; }

.login-form label {
    margin-top: 8px;
    color: #344257;
    font-size: .83rem;
    font-weight: 700;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    color: var(--ink);
    font: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10, 114, 184, .12); }

.login-btn {
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    color: var(--white);
    font: inherit;
    font-weight: 800;
	color: #053F48;
    background: linear-gradient(135deg, #75DDD0 0%, #36B8AA 100%);
    box-shadow: 0 12px 22px rgba(4, 89, 152, .20);
    transition: transform .2s, box-shadow .2s;
}

.login-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #8BE6DA 0%, #2CA99C 100%);
    box-shadow: 0 15px 26px rgba(44, 169, 156, .30);
}

.form-alert {
    margin: 0 0 18px;
    padding: 11px 13px;
    border: 1px solid #ffc7c7;
    border-radius: 9px;
    color: #9f2424;
    font-size: .85rem;
    line-height: 1.45;
    background: #fff4f4;
}

.password-help { margin: 20px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; text-align: center; }
.login-footer { margin-top: auto; padding-top: 42px; color: #7a8695; font-size: .72rem; text-align: center; }

@media (max-width: 760px) {
    body.login-page { padding: 16px; background-attachment: scroll; }
    .login-shell { grid-template-columns: 1fr; min-height: 0; border-radius: 18px; }
    .welcome-panel, .sign-in-panel { padding: 34px 26px; }
    .welcome-panel h1 { font-size: 1.8rem; }
    .brand-lockup { margin-bottom: 25px; }
    .brand-lockup img { width: 205px; }
    .instruction-card { margin-top: 4px; }
    .login-footer { padding-top: 32px; }
}

/* Full-width Sacred Heart branding around the patient sign-in card. */
body.login-page { padding: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100vh; min-height: 100svh; }
.site-header { background: linear-gradient(115deg, #75DDD0 0%, #36B8AA 100%); color: #053f48; border-bottom: 1px solid rgba(5, 63, 72, .15); box-shadow: 0 4px 24px rgba(5, 63, 72, .12); }
.site-header-inner { max-width: 1280px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: flex; align-items: center; gap: 24px; color: inherit; text-decoration: none; min-width: 0; }
.site-brand img { width: 172px; height: auto; flex-shrink: 0; padding: 10px 12px; background: #fff; border-radius: 12px; }
.site-brand-copy { display: grid; gap: 6px; }
.site-brand-copy strong { color: #000; font-size: clamp(1.1rem, 2.2vw, 1.75rem); line-height: 1.2; letter-spacing: -.025em; }
.site-brand-copy > span { font-size: .87rem; line-height: 1.5; }
.header-label { flex-shrink: 0; padding: 9px 15px; border: 1px solid rgba(5, 63, 72, .25); border-radius: 999px; font-size: .75rem; font-weight: 700; }
.site-brand:focus-visible { outline: 3px solid #073b6d; outline-offset: 6px; border-radius: 8px; }
.login-stage { flex: 1; display: flex; align-items: center; padding: 40px 28px; }
.site-footer { color: #053f48; background: linear-gradient(115deg, #75DDD0 0%, #36B8AA 100%); border-top: 1px solid rgba(5, 63, 72, .15); }
.site-footer-inner { max-width: 1280px; margin: 0 auto; padding: 30px 40px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer-inner section + section { border-left: 1px solid rgba(5, 63, 72, .22); padding-left: 28px; }
.site-footer h2 { margin: 0 0 8px; font-size: .92rem; line-height: 1.4; }
.site-footer p { margin: 0; font-size: .81rem; line-height: 1.65; }
.site-copyright { padding: 16px 24px; border-top: 1px solid rgba(5, 63, 72, .15); background: rgba(255, 255, 255, .24); font-size: .76rem; line-height: 1.6; text-align: center; }
@media (max-width: 760px) {
    .site-header-inner { padding: 20px; }
    .site-brand { gap: 14px; }
    .site-brand img { width: 116px; padding: 8px; }
    .site-brand-copy > span { font-size: .75rem; }
    .header-label { display: none; }
    .login-stage { padding: 24px 16px; }
    .site-footer-inner { grid-template-columns: 1fr; gap: 18px; padding: 26px 24px; }
    .site-footer-inner section + section { border-left: 0; border-top: 1px solid rgba(5, 63, 72, .22); padding-left: 0; padding-top: 18px; }
}
@media (max-width: 380px) {
    .site-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* Compact desktop layout; retain natural scrolling for small screens and zoom. */
.footer-location { display: flex; align-items: center; gap: 9px; }
.footer-location svg { width: 26px; height: 26px; flex-shrink: 0; }
@media (min-width: 761px) {
    .site-header-inner { padding: 12px 32px; }
    .site-brand img { width: 136px; padding: 6px 9px; }
    .login-stage { padding: 18px 28px; }
    .login-shell { min-height: 0; }
    .welcome-panel, .sign-in-panel { padding: 28px 38px; }
    .brand-lockup { margin-bottom: 16px; padding: 6px 9px; }
    .brand-lockup img { width: 190px; }
    .welcome-panel h1 { font-size: clamp(1.65rem, 2.5vw, 2.2rem); }
    .welcome-copy { margin: 12px 0 16px; font-size: .9rem; line-height: 1.5; }
    .instruction-card { padding: 13px; }
    .trust-row { margin-top: 16px; gap: 8px 12px; }
    .sign-in-panel h2 { font-size: 1.8rem; }
    .sign-in-subtitle { margin: 10px 0 16px; }
    .login-form { gap: 7px; }
    .login-form input { min-height: 44px; padding: 10px 13px; }
    .login-btn { min-height: 44px; margin-top: 10px; }
    .password-help { margin-top: 14px; }
    .site-footer-inner { padding: 16px 32px; gap: 22px; }
    .site-footer h2 { margin-bottom: 4px; }
    .site-footer p { font-size: .78rem; line-height: 1.45; }
    .site-copyright { padding: 9px 24px; }
}
@media (min-width: 761px) and (max-height: 740px) {
    .site-header-inner { padding-top: 8px; padding-bottom: 8px; }
    .site-brand img { width: 112px; }
    .login-stage { padding-top: 12px; padding-bottom: 12px; }
    .welcome-panel, .sign-in-panel { padding: 20px 30px; }
    .brand-lockup { margin-bottom: 10px; }
    .brand-lockup img { width: 150px; }
    .welcome-panel h1 { font-size: 1.65rem; }
    .welcome-copy { margin: 8px 0 12px; }
    .trust-row { margin-top: 12px; }
    .site-footer-inner { padding-top: 12px; padding-bottom: 12px; }
}

/* Give the middle card more height on desktop, within the available viewport. */
@media (min-width: 761px) {
    .login-shell { min-height: clamp(400px, calc(100svh - 340px), 520px); }
}

.login-copyright { margin: 18px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: center; }
