/* Sign-in page, canvas "Big-hero style · sign-in page" (Components/Account/Login.razor). Kept apart from app.css so
   the page's look can change without touching the rest of the portal. The form fields and button reuse the
   .login-field / .login-submit rules in app.css. */

/* The page fills the window, so the shared auth layout's centring and background (still used by the error page)
   step aside. */
.auth-page:has(.hero-login) { display: block; padding: 0; background: #fff; }

.hero-login { min-height: 100vh; display: flex; flex-direction: column; background: #fff; color: #1f2329; font-family: "Public Sans", "Segoe UI", sans-serif; }
.hero-login a { color: inherit; }
.hero-login h1, .hero-login h2, .hero-login h3 { font-family: "Archivo Narrow", "Arial Narrow", sans-serif; font-weight: 700; }

/* Header (the old utility bar is merged into it) */
.hl-header { display: flex; align-items: center; gap: 34px; height: 80px; padding: 0 48px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.hl-logo { display: block; height: 44px; width: auto; }
.hl-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 16px; font-weight: 600; }
.hl-nav a { text-decoration: none; padding: 6px 0; }
.hl-nav a:hover, .hl-nav a:focus-visible { box-shadow: inset 0 -2px 0 #c8102e; }
.hl-header-end { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.hl-icon-link { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 19px; text-decoration: none; color: #374151 !important; }
.hl-icon-link:hover, .hl-icon-link:focus-visible { background: #f1f2f4; }
.hl-cta { padding: 12px 22px; border-radius: 999px; background: #c8102e; color: #fff !important; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hl-cta:hover, .hl-cta:focus-visible { background: #a50d26; }

/* 3. Hero: the gray gradient. To use a photo, add wwwroot/images/login-hero.jpg and put
   url("images/login-hero.jpg") center / cover no-repeat, in front of the gradient below (it shows behind the dark fade). */
.hl-hero {
    position: relative;
    display: grid;
    /* Headline and sign-in card sit together as a pair in the middle, not at the two far edges. */
    grid-template-columns: minmax(0, 560px) 380px;
    justify-content: center;
    gap: 120px;
    align-items: start;
    min-height: 380px;
    padding: 40px 64px 84px 48px;
    box-sizing: border-box;
    background: linear-gradient(120deg, #3a3f47 0%, #6b7280 55%, #9ca3af 100%);
}
.hl-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 22, 26, .78) 0%, rgba(20, 22, 26, .45) 50%, rgba(20, 22, 26, 0) 75%); pointer-events: none; }
.hl-hero-text { position: relative; max-width: 560px; padding-top: 24px; color: #fff; }
.hl-eyebrow { margin: 0; font-family: "Archivo Narrow", sans-serif; font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fca5a5; }
.hl-hero-text h1 { margin: 8px 0 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.02; }
.hl-hero-sub { margin: 14px 0 0; font-size: 18px; line-height: 1.5; color: #e5e7eb; }

.hl-card { position: relative; z-index: 1; padding: 22px 26px 18px; background: #fff; border-radius: 14px; box-shadow: 0 24px 50px rgba(0, 0, 0, .28); }
.hl-card h2 { margin: 0 0 12px; font-size: 25px; }
.hl-card .login-field { margin-bottom: 10px; gap: 4px; }
.hl-card .login-field input { height: 42px; border-color: #d1d5db; border-radius: 8px; }
.hl-card .login-submit { height: 44px; margin-top: 4px; border-radius: 999px; background: #c8102e; font: 700 16px "Public Sans", sans-serif; letter-spacing: 0; text-transform: none; }
.hl-card .login-submit:hover, .hl-card .login-submit:focus-visible { background: #a50d26; }
.hl-remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 14px; color: #374151; cursor: pointer; }
.hl-remember input { width: 16px; height: 16px; margin: 0; accent-color: #c8102e; cursor: pointer; }
.hl-card-help { margin: 12px 0 0; font-size: 12px; color: #6b7280; }
.hl-card-help a { color: #c8102e; font-weight: 600; }

/* 4. Quick tiles overlapping the bottom of the hero */
/* At most 360px per card, the row centred under the hero instead of spanning the full width. */
.hl-tiles { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); justify-content: center; gap: 28px; margin: -40px 48px 0; }
/* Compact tiles: icon on the left, title and one line of text, the link on the right. */
.hl-tile { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 19px 18px; background: #fff; border-radius: 14px; box-shadow: 0 10px 28px rgba(0, 0, 0, .12); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hl-tile:hover, .hl-tile:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, .16); }
.hl-tile-icon { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: #fdecee; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.hl-tile strong { grid-column: 2; font-size: 16px; white-space: nowrap; }
.hl-tile-text { grid-column: 2; font-size: 13px; color: #6b7280; }
.hl-tile-cta { grid-column: 3; grid-row: 1 / 3; font-size: 14px; font-weight: 700; color: #c8102e; white-space: nowrap; }

/* 6. Forms */
/* Lower part of the white area: on taller screens it is lifted a little off the footer (up to 80px), on laptop screens
   it stays put so the page still fits without scrolling. */
.hl-forms { margin-top: auto; margin-bottom: min(80px, max(0px, calc((100vh - 820px) / 2))); padding: 4px 48px 18px; }
.hl-forms-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.hl-forms-head h2 { margin: 0; font-size: 22px; }
.hl-forms-head span { font-size: 14px; color: #6b7280; }
.hl-form-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hl-form { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid #e5e7eb; border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.hl-form:hover, .hl-form:focus-visible { border-color: #c8102e; color: #c8102e; }
.hl-pdf-icon { font-size: 18px !important; color: #c8102e; }

/* 7. Dark footer */
.hl-footer { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 16px 24px; padding: 12px 48px; background: #1f2329; color: #c9ccd2; font-size: 13px; }
.hl-footer > * { display: flex; flex-direction: column; gap: 4px; }
.hl-footer h3 { margin: 0 0 4px; font-family: "Public Sans", sans-serif !important; font-size: 13px; color: #fff; }
.hl-footer a { text-decoration: none; }
.hl-footer a:hover, .hl-footer a:focus-visible { color: #fff; text-decoration: underline; }
.hl-footer-logo { width: 140px; height: auto; margin-bottom: 8px; filter: brightness(0) invert(1); }

@media (prefers-reduced-motion: reduce) {
    .hl-tile { transition: none; }
}

/* Tablets: the card drops under the headline, tiles go two across. */
@media (max-width: 960px) {
    .hl-nav { display: none; }
    .hl-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 36px 32px 96px; }
    .hl-hero-text { padding-top: 0; }
    .hl-card { max-width: 440px; }
    .hl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: -56px 32px 0; }
    .hl-forms, .hl-footer { padding-left: 32px; padding-right: 32px; }
    .hl-header { padding: 0 32px; }
    .hl-footer { grid-template-columns: 1fr 1fr; }
}

/* Phones */
@media (max-width: 560px) {
    .hl-header { height: 64px; gap: 12px; padding: 0 16px; }
    .hl-logo { height: 36px; }
    .hl-hero { padding: 28px 16px 80px; }
    .hl-hero-sub { font-size: 16px; }
    .hl-card { padding: 24px 20px; }
    .hl-tiles { grid-template-columns: minmax(0, 1fr); margin: -48px 16px 0; }
    .hl-forms, .hl-footer { padding-left: 16px; padding-right: 16px; }
    .hl-footer { grid-template-columns: minmax(0, 1fr); }
}
