:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#142238;background:#f3f6fa;color-scheme:light}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:#264cad;text-underline-offset:.2em}a,button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid #965000;outline-offset:3px}.skip-link{position:absolute;z-index:10;top:1rem;left:1rem;transform:translateY(-200%);padding:.75rem;background:white;border:2px solid #142238}.skip-link:focus{transform:none}.shell{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:2rem;max-width:76rem;margin:auto;padding:clamp(1rem,4vw,3rem)}.story{border-radius:1.3rem;background:#17345c;color:#e0e9ff;padding:clamp(1rem,4vw,3rem);align-self:start}.brand{font-weight:800}.eyebrow{font-size:.85rem;letter-spacing:.08em;margin-top:2rem}.story h2{font-size:clamp(1.8rem,4vw,3rem);letter-spacing:-.03em}.story p{line-height:1.7}.panel{min-width:0;background:white;border:1px solid #d8e0ec;border-radius:1.3rem;padding:clamp(1rem,4vw,2.5rem)}h1{font-size:clamp(1.8rem,4vw,2.5rem);line-height:1.2;letter-spacing:-.03em;margin-top:0}h2{font-size:1.2rem}h1,h2,p,label,a,button,strong,li{overflow-wrap:anywhere}p,li{line-height:1.65}.field{margin:1.25rem 0}.field label{display:block;font-weight:700;margin-bottom:.5rem}.field input{display:block;width:100%;min-width:0;border:1px solid #728096;border-radius:.6rem;min-height:3rem;padding:.7rem .8rem;background:#fff;color:#142238}.field input[aria-invalid=true]{border-color:#b33b43}.help{font-size:.9rem;color:#52647c;margin:.5rem 0}.error{color:#a12c36}.error-summary{border:2px solid #921A1D;border-radius:.6rem;padding:1rem;margin:1rem 0;background:#FDE8E8;color:#921A1D}.error-summary h2{margin-top:0;color:#921A1D}.status{padding:.8rem 1rem;border:1px solid #427765;background:#e7f5ef;border-radius:.6rem;color:#174d3b}.primary,button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid #264cad;background:#335dff;color:white;border-radius:.6rem;padding:.75rem 1rem;font-weight:700;cursor:pointer;white-space:normal}.primary{width:100%}button.secondary{background:white;color:#264cad}.links{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:1rem}.links a,.local-link{display:inline-flex;align-items:center;min-height:44px}.session-list{padding:0;list-style:none}.session-list li{border:1px solid #728096;padding:1rem;border-radius:.6rem;margin:1rem 0}.local-note{margin-top:2rem;border-top:1px solid #cbd4e2;padding-top:1rem;font-size:.85rem}.inbox-list{padding:0;list-style:none}.inbox-list li{padding:1rem;border:1px solid #728096;margin:1rem 0}.platform-list{padding-left:1.2rem}.platform-list a{display:inline-flex;min-height:44px;align-items:center}.logout{margin-top:1rem}code{font-size:inherit}@media(max-width:850px){.shell{grid-template-columns:1fr;gap:1rem}.story,.panel{padding:min(5vw,2rem)}.eyebrow{margin-top:1rem}.story h2{margin:.5rem 0}.story p{margin:.5rem 0}}@media(forced-colors:active){input,button,.primary,.panel,.story,.error-summary,.status{border:2px solid CanvasText}a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid Highlight}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}[hidden]{display:none!important}.contact-fields{border:0;padding:0;margin:0;min-width:0}.other-method{margin-top:.8rem}.field select{display:block;width:100%;min-width:0;max-width:100%;border:1px solid #728096;border-radius:.6rem;min-height:3rem;padding:.7rem .8rem;background:#fff;color:#142238;font:inherit}.field select:focus-visible{outline:3px solid #965000;outline-offset:3px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.otp-group{border:0;margin:1.25rem 0;padding:0;min-width:0}.otp-group legend{font-weight:700;margin-bottom:.65rem}.otp-digits{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(.2rem,1vw,.6rem)}.otp-group .otp-digit{width:100%;min-width:0;min-height:3rem;text-align:center;border:1px solid #728096;border-radius:.5rem;background:#fff;color:#142238;font:inherit;font-size:clamp(1rem,5vw,1.6rem);padding:.65rem 0}.otp-digit[aria-invalid=true]{border-color:#a12c36}@media(forced-colors:active){.field select,.otp-group .otp-digit{border:2px solid CanvasText}}.phone-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:.75rem;align-items:end;margin:1.25rem 0 .5rem}.phone-row .field{margin:0;min-width:0}.phone-row input,.phone-row select{height:3.25rem}.phone-row select{text-overflow:ellipsis}@media(max-width:400px){.phone-row{gap:.4rem}}.phone-row{grid-template-columns:80px minmax(0,1fr)}.phone-row #countryCode{width:80px;max-width:80px;padding:.7rem 2px;text-align:center;font-size:14px}.phone-row #countryCode::-webkit-calendar-picker-indicator{display:none}.remember-sign-in { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 16px; cursor: pointer; }
.remember-sign-in input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: #921A1D; }

/* Keep the side-by-side identity panels on the same grid row as the form changes. */
.identity-shell > .story { align-self: stretch; }
.identity-shell > .panel {
    background: #F3EFE6;
    border-color: transparent;
    border-radius: clamp(1.3rem, 4vw, 3rem);
    color: #111827;
}

.identity-shell .field :is(input, select),
.identity-shell .otp-group .otp-digit {
    border-color: #111827;
    border-radius: 999px;
    background-color: transparent;
    color: #111827;
}

.identity-shell .field :is(input, select)[aria-invalid="true"],
.identity-shell .otp-group .otp-digit[aria-invalid="true"] {
    border-color: #921A1D;
}

.identity-shell .field :is(#email, #phone, #password) {
    padding-inline-start: 3rem;
    background-position: 1rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem;
}

.identity-shell .field #email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23921A1D' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='1'/%3E%3Cpath d='m2 5 10 8L22 5M2 19l7-7m13 7-7-7'/%3E%3C/svg%3E");
}

.identity-shell .field #phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23921A1D' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

.identity-shell .field #password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23921A1D' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='12' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3m-4 5v3'/%3E%3C/svg%3E");
}

.identity-shell .panel button {
    width: 100%;
    border: 2px solid #921A1D;
    border-radius: 999px;
    background: transparent;
    color: #921A1D;
}

.identity-shell .panel button:hover:not(:disabled) {
    background: #921A1D;
    color: #F3EFE6;
}

@media (forced-colors: active) {
    .identity-shell .field :is(input, select),
    .identity-shell .otp-group .otp-digit,
    .identity-shell .panel button { border: 2px solid CanvasText; }
}

.identity-shell .account-options a {
    color: #921A1D;
    font-weight: 700;
}

.registration-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .6rem;
    margin: 1rem 0;
    line-height: 1.5;
}

.registration-consent input {
    width: 1.4rem;
    height: 1.4rem;
    margin: .05rem 0 0;
    accent-color: #921A1D;
}

.registration-consent a { color: #921A1D; }
.identity-shell .panel button:disabled { opacity: .65; cursor: not-allowed; }

.site-header {
    background: #F3EFE6;
    color: #111827;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    max-width: 76rem;
    margin-inline: auto;
    padding: .5rem clamp(1rem, 4vw, 3rem);
}

.home-link { flex: none; }
.home-link img { display: block; }
.home-link .logo-dark, .theme-toggle .sun-icon { display: none; }

.header-preferences, .language-switch {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(.4rem, 2vw, 1rem);
}

.language-switch { flex-wrap: wrap; }
.language-switch a {
    color: inherit;
    font-size: .9rem;
    text-decoration: none;
}
.language-switch a:is(:hover, [aria-current]) { text-decoration: underline; }
.language-switch a[aria-current] { font-weight: 700; }

.theme-toggle {
    width: 44px;
    flex: none;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    color: #F3EFE6;
    background: #111827;
    --identity-accent: #FFB300;
    --identity-surface: #1C2637;
    --identity-muted: #CBD5E1;
    --identity-error: #FFB4B4;
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .skip-link { background: #0B1220; color: inherit; }
[data-theme="dark"] .home-link .logo-light,
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
[data-theme="dark"] .home-link .logo-dark,
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }

[data-theme="dark"] :is(.panel, .story) {
    background: var(--identity-surface);
    border-color: #445169;
    color: inherit;
}

[data-theme="dark"] :is(a, .identity-shell .account-options a, .language-switch a[aria-current]) { color: var(--identity-accent); }
[data-theme="dark"] :is(a, button, input, select):focus-visible { outline-color: var(--identity-accent); }
[data-theme="dark"] .help { color: var(--identity-muted); }
[data-theme="dark"] .error { color: var(--identity-error); }
[data-theme="dark"] .status { background: #163830; color: #D1FAE5; }
[data-theme="dark"] input[type="checkbox"] { accent-color: var(--identity-accent); }

[data-theme="dark"] :is(.field, .identity-shell .field) :is(input, select),
[data-theme="dark"] .identity-shell .otp-group .otp-digit {
    border-color: #94A3B8;
    background-color: #111827;
    color: #F3EFE6;
}

[data-theme="dark"] .identity-shell :is(.field input, .otp-group .otp-digit)[aria-invalid="true"] {
    border-color: var(--identity-error);
}

[data-theme="dark"] .panel button {
    border-color: var(--identity-accent);
    background: transparent;
    color: var(--identity-accent);
}
[data-theme="dark"] .panel button:hover:not(:disabled) {
    background: var(--identity-accent);
    color: #111827;
}

[data-theme="dark"] .contacts-shell .merge-card { border-color: var(--identity-accent); }
[data-theme="dark"] .contacts-shell .contact-item { border-color: #445169; }

[data-theme="dark"] .identity-shell .field #email {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB300' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='1'/%3E%3Cpath d='m2 5 10 8L22 5M2 19l7-7m13 7-7-7'/%3E%3C/svg%3E");
}

[data-theme="dark"] .identity-shell .field #phone {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB300' stroke-width='2' stroke-linecap='round'%3E%3Crect x='6' y='2' width='12' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E");
}

[data-theme="dark"] .identity-shell .field #password {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFB300' stroke-width='2' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='12' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3m-4 5v3'/%3E%3C/svg%3E");
}


.site-footer {
    background: #F3EFE6;
    color: #111827;
}

.site-footer .footer-bottom {
    max-inline-size: 76rem;
    margin-inline: auto;
    padding: .5rem clamp(1rem, 4vw, 3rem) 1.5rem;
    text-align: end;
}

.site-footer .page-width::before {
    content: "";
    display: block;
    block-size: 1px;
    margin-inline-start: 30%;
    margin-block-end: .5rem;
    background: #fff;
}

.site-footer p { margin: 0; font-size: .75rem; line-height: 1.7; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 760px) {
    .site-footer .footer-bottom { text-align: center; }
    .site-footer .page-width::before { margin-inline-start: 0; }
}

[data-theme="dark"] .site-footer { background: #0B1220; color: #F3EFE6; }
[data-theme="dark"] .site-footer a { color: inherit; }


.password-input { position: relative; }
.identity-shell .password-input #password { padding-inline-end: 3rem; }
.identity-shell .panel .password-visibility {
    position: absolute;
    inset-inline-end: .25rem;
    inset-block-start: 50%;
    transform: translateY(-50%);
    inline-size: 44px;
    padding: 0;
    border: 0;
    background: transparent;
}
.password-visibility svg { inline-size: 22px; block-size: 22px; }
.password-eye-slash { display: none; }
.password-visibility[aria-pressed="true"] .password-eye-slash { display: block; }


.identity-page {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    block-size: 100vh;
    block-size: 100dvh;
    min-block-size: 0;
}

.identity-viewport {
    display: flex;
    flex-direction: column;
    min-block-size: 0;
    overflow-y: auto;
}

.identity-viewport > :is(.identity-shell, .contacts-shell) {
    flex: none;
    inline-size: 100%;
    margin-block: auto;
}
