/* BEE#412 A1 (REQ-01, REQ-04, REQ-21): the Register and Forgot Password pages, from the scope's Figure 1.
   Global (not scoped), because both pages share it. The site colour comes from .rg-<theme> on .rg-page. */
.rg-page { --rg-accent: var(--nbd-primary); --rg-bad: #B42318; --rg-good: #1B5E20; background: #F3F5F9; padding: 28px 16px 36px; min-height: calc(100vh - 120px); }
.rg-page.rg-forestry { --rg-accent: var(--forestry-primary); }
.rg-page.rg-property { --rg-accent: var(--property-primary); }
.rg-page.rg-financial { --rg-accent: var(--financial-primary); }
.rg-page.rg-tourism { --rg-accent: var(--tourism-primary); }
.rg-card { max-width: 480px; margin: 0 auto; background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 24px; color: #1F2937; font-size: 14px; }
.rg-card h4 { font-size: 20px; margin: 0 0 6px; color: #111827; font-weight: 700; }
.rg-lead { font-size: 14px; color: #4B5563; margin: 0 0 18px; line-height: 1.5; }
.rg-f { margin-bottom: 14px; }
.rg-f > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #111827; }
.rg-in { display: block; width: 100%; box-sizing: border-box; height: 44px; border: 1px solid #D1D5DB; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; color: #111827; background: #fff; }
.rg-in:focus { outline: 2px solid var(--rg-accent); outline-offset: 1px; border-color: var(--rg-accent); }
.rg-in.bad { border-color: var(--rg-bad); }
/* The Register agency dropdown (an SfDropDownList, CssClass rg-ddl) drawn like .rg-in. The selectors out-rank the
   Syncfusion theme's, which loads after this file. The popup is placed on the body, so it is styled by its class alone. */
.rg-page .rg-f .e-input-group.e-control-wrapper.e-ddl.rg-ddl { height: 44px; box-sizing: border-box; border: 1px solid #D1D5DB; border-radius: 6px; background: #fff; box-shadow: none; font-family: inherit; }
.rg-page .rg-f .e-input-group.e-control-wrapper.e-ddl.rg-ddl input.e-input { height: 100%; min-height: 0; padding: 0 12px; font: inherit; font-size: 16px; color: #111827; }
.rg-page .rg-f .e-input-group.e-control-wrapper.e-ddl.rg-ddl.e-input-focus { outline: 2px solid var(--rg-accent); outline-offset: 1px; border-color: var(--rg-accent); box-shadow: none; }
.rg-page .rg-f .e-input-group.e-control-wrapper.e-ddl.rg-ddl.bad { border-color: var(--rg-bad); }
.e-ddl.e-popup.rg-ddl .e-list-item, .e-ddl.e-popup.rg-ddl .e-input-filter { font-family: inherit; font-size: 15px; }
.rg-err { color: var(--rg-bad); font-size: 13px; margin-top: 4px; }
.rg-err:empty { display: none; }
.rg-hint { font-size: 13px; color: #6B7280; margin: -2px 0 6px; }
.rg-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rg-types { display: grid; gap: 10px; margin: 0 0 6px; padding: 0; border: 0; }
.rg-type { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #D1D5DB; border-radius: 8px; padding: 12px 14px; cursor: pointer; }
.rg-type input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--rg-accent); }
.rg-type b { display: block; font-size: 15px; color: #111827; }
.rg-type span span { font-size: 13px; color: #4B5563; }
.rg-type.on { border-color: var(--rg-accent); background: #EEF3FB; box-shadow: inset 0 0 0 1px var(--rg-accent); }
.rg-types + .rg-err { margin: 0 0 12px; }
.rg-pw { position: relative; }
.rg-pw .rg-in { padding-right: 72px; }
.rg-show { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; background: none; color: var(--rg-accent); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rg-rules { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: #6B7280; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }
.rg-rules li::before { content: "\25CB"; margin-right: 6px; }
.rg-rules li.ok { color: var(--rg-good); }
.rg-rules li.ok::before { content: "\2713"; }
.rg-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.rg-btn { display: flex; align-items: center; justify-content: center; height: 46px; border: 0; border-radius: 6px; background: var(--rg-accent); color: #fff; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; width: 100%; text-decoration: none; }
.rg-btn:hover { color: #fff; filter: brightness(1.08); }
.rg-btn:disabled { opacity: 0.6; cursor: default; }
/* The sign-in page (QA A1-ADV-05, scope Figures 6 and 11): the Register page's card over the site's background. */
.rg-page.rg-login { background: transparent; position: relative; z-index: 1; width: 100%; min-height: 0; padding: 16px; box-sizing: border-box; }
.rg-page.rg-login .rg-card { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.rg-login-message { background: #FEF3F2; color: #7F1D1D; border: 1px solid var(--rg-bad); border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.rg-login .rg-forgot { display: block; text-align: right; font-size: 14px; margin: -4px 0 14px; color: var(--rg-accent); }
.rg-btn.rg-btn-secondary { background: #fff; color: var(--rg-accent); border: 2px solid var(--rg-accent); }
.rg-btn.rg-btn-secondary:hover { color: var(--rg-accent); }
.rg-summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #D1D5DB; border-radius: 6px; font-size: 14px; }
.rg-summary dt { color: #6B7280; }
.rg-summary dd { margin: 0; overflow-wrap: anywhere; }
.rg-actions form { margin: 0; }
.rg-btn:focus-visible, .rg-link:focus-visible, .rg-show:focus-visible { outline: 2px solid var(--rg-accent); outline-offset: 2px; }
.rg-link { background: none; border: 0; padding: 0; color: var(--rg-accent); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.rg-link:disabled { color: #6B7280; text-decoration: none; cursor: default; }
.rg-sum { border: 1px solid var(--rg-bad); background: #FEF3F2; color: #7F1D1D; border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.rg-note { background: #EEF2F8; color: #1F3B6B; border-radius: 6px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.rg-note.rg-good { background: #ECFDF3; color: var(--rg-good); }
.rg-code { letter-spacing: 0.4em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.rg-alt { font-size: 14px; color: #4B5563; text-align: center; }
.rg-alt a { color: var(--rg-accent); }
.rg-stepper { list-style: none; display: flex; margin: 0 0 22px; padding: 0; }
.rg-stepper li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #6B7280; text-align: center; }
.rg-stepper li + li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #D1D5DB; z-index: 0; }
.rg-stepper li.done::before, .rg-stepper li.cur::before { background: var(--rg-accent); }
.rg-dot { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; background: #E5E7EB; color: #4B5563; font: inherit; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rg-stepper li.done .rg-dot, .rg-stepper li.cur .rg-dot { background: var(--rg-accent); color: #fff; }
.rg-stepper li.cur .rg-dot { box-shadow: 0 0 0 4px #D6E1F3; }
.rg-stepper li.cur { color: #111827; font-weight: 600; }
button.rg-dot { cursor: pointer; }

/* A phone: one column, the card fills the screen, the buttons stay in reach. */
@media (max-width: 520px) {
    .rg-page { padding: 0; background: #fff; min-height: 0; }
    .rg-card { border: 0; border-radius: 0; padding: 18px 16px 16px; max-width: none; }
    .rg-2, .rg-rules { grid-template-columns: 1fr; }
}

/* BEE#412 A1 REQ-26: My Account's "Take a picture" dialog (MyAccount.razor.js puts it on <body>, so it is styled here). */
.ma-camera { position: fixed; inset: 0; z-index: 2000; background: rgba(17, 24, 39, 0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ma-camera-box { background: #fff; border-radius: 10px; padding: 20px; width: min(420px, 100%); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); color: #1F2937; font-size: 14px; }
.ma-camera-box h4 { font-size: 18px; font-weight: 700; margin: 0 0 12px; color: #111827; }
.ma-camera-view { aspect-ratio: 1; width: 100%; border-radius: 8px; overflow: hidden; background: #111827; }
.ma-camera-view video, .ma-camera-view canvas { width: 100%; height: 100%; object-fit: cover; display: block; transform: scaleX(-1); }
.ma-camera-view canvas { transform: none; }
.ma-camera-note { margin: 10px 0; color: #4B5563; }
.ma-camera-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.ma-camera-actions .rg-btn { width: auto; height: 40px; padding: 0 18px; font-size: 15px; }
.ma-camera-actions [hidden] { display: none; }

/* The user, 26 Nov 2026: the sign-in card did not sit well on the photos. A tint of the site's colour over the blurred photo,
   and a frosted card with a stripe of the site's colour, so every site's sign-in reads as that site. */
.rg-login-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(160deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.55)); }
.rg-login-shade-nbd { background: linear-gradient(160deg, color-mix(in srgb, var(--nbd-primary) 55%, transparent), rgba(15, 23, 42, 0.6)); }
.rg-login-shade-forestry { background: linear-gradient(160deg, color-mix(in srgb, var(--forestry-primary) 55%, transparent), rgba(15, 23, 42, 0.55)); }
.rg-login-shade-property { background: linear-gradient(160deg, color-mix(in srgb, var(--property-primary) 55%, transparent), rgba(15, 23, 42, 0.55)); }
.rg-login-shade-financial { background: linear-gradient(160deg, color-mix(in srgb, var(--financial-primary) 55%, transparent), rgba(15, 23, 42, 0.55)); }
.rg-login-shade-tourism { background: linear-gradient(160deg, color-mix(in srgb, var(--tourism-primary) 55%, transparent), rgba(15, 23, 42, 0.55)); }
.rg-page.rg-login { z-index: 2; }
.rg-page.rg-login .rg-card {
    max-width: 420px; padding: 32px 32px 28px; border: 0; border-radius: 14px; border-top: 5px solid var(--rg-accent);
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.12);
}
.rg-page.rg-login .rg-card h4 { font-size: 24px; margin-bottom: 18px; }
.rg-page.rg-login .rg-alt { text-align: center; color: #4B5563; }
@media (max-width: 480px) { .rg-page.rg-login .rg-card { padding: 24px 20px; } }

/* My Account, Choose emails (the user, 26 Nov 2026). The dialog is placed outside the page, so its styles live here. */
.ma-choices-lead { margin: 0 0 12px; color: #4B5563; font-size: 14px; line-height: 1.45; }
.ma-choices { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.ma-choices label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; }
.ma-choices input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rg-accent, #2B4C81); }
.ma-choices-dialog .ma-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

