@font-face {
    font-family: "Barlow Semi Condensed";
    src: url("/assets/entry-barlow.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

:root {
    --navy: #102637;
    --blue: #174967;
    --paper: #f3f6f6;
    --muted: #4a5c66;
    --accent: #ecc077;
    --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
    color: var(--navy);
    background: var(--paper);
    font-family: system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #176c9c; outline-offset: 4px; }
.masthead :focus-visible { outline-color: var(--accent); }
.frame { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: var(--navy); color: white; }
.masthead-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; width: 124px; height: auto; }
.portal-link { color: #e1edf3; font-size: .85rem; text-align: right; }

.entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: stretch;
    margin-block: 38px 0;
    background: white;
    border: 1px solid #d2dddf;
}

.cover { display: flex; flex-direction: column; background: var(--blue); color: white; }
.cover-copy { padding: 39px clamp(24px, 4.5vw, 58px) 32px; }
.cover-copy::before { content: ""; display: block; width: 34px; height: 3px; margin-bottom: 14px; background: var(--accent); }
.cover h1 { margin: 0; font: 700 clamp(2.5rem, 5.15vw, 4.2rem)/.94 var(--display); letter-spacing: -.025em; }
.cover p { margin: 14px 0 0; color: #e1edf3; line-height: 1.45; }
.cover img { display: block; width: 100%; height: 0; flex: 1; min-height: 195px; object-fit: cover; object-position: center 49%; }

.entry-panel { align-self: center; padding: clamp(24px, 4.5vw, 56px); }
.preview-label { display: inline-block; margin: 0 0 13px; background: #f4e4cb; color: #624416; border-radius: 3px; padding: 4px 7px; font-size: .75rem; font-weight: 650; }
.entry-panel h2 { margin: 0; font: 700 2.5rem/1.04 var(--display); letter-spacing: -.015em; }
.translation { margin: 3px 0 22px; color: var(--muted); line-height: 1.45; }
.instruction, .entry-help p { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.instruction { margin: 0 0 17px; }
form { display: grid; gap: 9px; }
form label { font-size: .85rem; font-weight: 650; }
form label:not(:first-of-type) { margin-top: 5px; }
input[type="email"], input[type="tel"], input[type="password"], input[type="text"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #899ba4;
    border-radius: 4px;
    padding: 10px 12px;
    color: var(--navy);
    background: white;
    font: inherit;
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 94px; }
.reveal { position: absolute; inset: 3px 3px 3px auto; border: 0; border-radius: 3px; padding-inline: 8px; color: var(--blue); background: #edf3f4; font: 650 .78rem system-ui, sans-serif; cursor: pointer; }
.remember { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.remember input { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); }
.remember span { font-size: .78rem; font-weight: 400; }
.primary { min-height: 46px; margin-top: 7px; border: 0; border-radius: 4px; padding: 10px 16px; color: white; background: var(--blue); font: 650 .94rem system-ui, sans-serif; cursor: pointer; }
.primary:hover { background: var(--navy); }
.entry-help { border-top: 1px solid #d2dddf; margin-top: 22px; padding-top: 16px; font-size: .85rem; }
.entry-help a { color: var(--blue); font-weight: 650; }
.entry-help p { margin: 6px 0 0; }
.feedback { margin: 0 0 16px; border: 1px solid #86ad9d; border-radius: 4px; padding: 9px 11px; background: #ebf6f1; font-size: .875rem; }
.feedback.error { border-color: #dca3a3; background: #fff0ef; color: #862c2c; }
.entry-footer { padding-block: 20px; font-size: .8125rem; color: var(--muted); }
.language { display: flex; padding: 3px; gap: 2px; border: 1px solid #678093; border-radius: 6px; }
.language button { min-width: 39px; min-height: 37px; border: 0; border-radius: 3px; background: transparent; color: #e1edf3; font: 650 .8125rem system-ui, sans-serif; cursor: pointer; }
.language button[aria-pressed="true"] { background: #e8eef0; color: var(--navy); }
.portal-return { display: inline-flex; align-items: center; text-decoration: none; }
.plan-cover {
    flex: 1;
    min-height: 195px;
    display: grid;
    place-items: center;
    background: #fff;
}
.plan-cover img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
}

@media (max-width: 670px) {
    .frame { width: calc(100% - 32px); }
    .masthead-inner { min-height: 68px; }
    .brand img { width: 104px; }
    .portal-link span { display: block; }
    .entry-grid { grid-template-columns: 1fr; margin-top: 16px; }
    .cover-copy { padding: 20px; }
    .cover-copy::before { margin-bottom: 9px; }
    .cover h1 { font-size: clamp(2.05rem, 8vw, 2.8rem); }
    .cover p { margin-top: 8px; font-size: .875rem; }
    .cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(82px, 27%); }
    .cover img { height: 100%; min-height: 0; }
    .plan-cover { min-width: 0; min-height: 0; }
    .plan-cover img { height: auto; }
    .entry-panel { padding: 22px 20px; }
}
