/* Vanguard Pathology public-site look (vanguardpathology.com/styles.css) for the
   signed-out pages that use _VanguardPublicLayout. Loaded INSTEAD of site.css, so
   class names here never collide with the app's own styles. Keep in step with the
   marketing site: same tokens, header, page banner, footer and type scale. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #004b8c;
    --primary-light: #1a6bb5;
    --primary-dark: #003366;
    --accent: #E8F4FD;
    --neutral-50: #F8FAFB;
    --neutral-200: #E1E8ED;
    --neutral-300: #C5D0D8;
    --neutral-400: #8A9BAA;
    --neutral-500: #5F7385;
    --neutral-600: #3D5166;
    --neutral-700: #2A3B4C;
    --neutral-800: #1A2836;
    --white: #ffffff;
    --btn: #7EEAE3;
    --btn-hover: #5DD8D0;
    --danger-bg: #fef2f2;
    --danger-border: #fecaca;
    --danger-text: #991b1b;
}

html { font-size: 16px; }
@media (min-width: 768px)  { html { font-size: 18px; } }
@media (min-width: 1024px) { html { font-size: 20px; } }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--neutral-800);
    background: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
main { flex: 1; }

.container { width: 90%; max-width: 1920px; margin: 0 auto; }

/* ===== Header ===== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 50;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo-img { width: 44px; height: 44px; }
.logo-name, .logo-sub {
    font-weight: 500;
    font-size: 1rem;
    color: var(--neutral-600);
    line-height: 1.2;
}
@media (min-width: 768px) {
    .logo-name, .logo-sub { font-size: 1.125rem; }
}

.nav-desktop { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 1024px) { .nav-desktop { display: flex; } }

.nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--primary); background: var(--accent); }

.menu-btn {
    display: flex;
    padding: 0.5rem;
    border: none;
    background: none;
    border-radius: 6px;
    color: var(--neutral-600);
    cursor: pointer;
}
.menu-btn:hover { color: var(--primary); background: var(--accent); }
.menu-btn svg { width: 24px; height: 24px; }
@media (min-width: 1024px) { .menu-btn { display: none; } }

.nav-mobile {
    display: none;
    border-top: 1px solid var(--neutral-200);
    background: var(--white);
    padding: 0.75rem 1rem;
}
.nav-mobile.open { display: block; }
@media (min-width: 1024px) { .nav-mobile { display: none !important; } }
.nav-mobile a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    border-radius: 6px;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--primary); background: var(--accent); }

/* ===== Page banner ===== */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    color: var(--white);
    padding: 2.5rem 0;
}
@media (min-width: 768px) { .page-header { padding: 3rem 0; } }
.page-header h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.75rem; }
@media (min-width: 768px) { .page-header h1 { font-size: 2.25rem; } }
.page-header p { color: #bfdbfe; font-size: 1rem; line-height: 1.7; max-width: 44rem; }
@media (min-width: 768px) { .page-header p { font-size: 1.125rem; } }

/* ===== Sections ===== */
.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }

/* ===== Sign-in card (styled like the site's .contact-card) ===== */
.auth-card {
    max-width: 32rem;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 25, 34, 0.04);
}
.auth-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1.25rem;
}
.form-row { margin-bottom: 1.125rem; }

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-600);
    margin-bottom: 0.375rem;
}
input[type=text], input[type=email], input[type=password] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--neutral-800);
    outline: none;
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 61, 107, 0.1); }
input::placeholder { color: var(--neutral-400); }

.check-row { display: flex; align-items: center; gap: 0.5rem; }
.check-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); }
.check-row label { margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.75rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: var(--btn);
    color: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}
.btn:hover { background: var(--btn-hover); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14); }
.btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

.auth-links { text-align: center; font-size: 0.875rem; margin-top: 1rem; }
.auth-links a { color: var(--primary); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }

.field-validation-error { display: block; color: var(--danger-text); font-size: 0.8rem; margin-top: 0.25rem; }
.alert-error {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--danger-text);
    padding: 0.625rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.alert-error ul { list-style: none; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); color: var(--white); }
.footer-bottom { padding: 1rem 0; display: flex; justify-content: center; text-align: center; }
.footer-bottom p { color: var(--neutral-400); font-size: 0.875rem; }
