﻿/* CannaLnx account pages (Views/Account: Login, ForgotPassword, ForgotPasswordConfirmation, RegisterNewUser, ConfirmEmail,
   ResetPassword, ResetPasswordConfirmation, UnconfirmedAccount), Oct 2026 redesign.
   Scoped under .acct-root with the .acct- prefix so nothing leaks into the rest of the site. Tokens follow cannalnx-ui.css
   (--cx-*) with the approved account-page palette as fallback. Some rules carry !important to beat the site-wide
   p / a / h / label / input rules in CannaLnx.css and Bootstrap, the same approach as doctor-finder.css and insurance.css. */
.acct-root {
    --acct-navy: #0B3D5C;
    --acct-denim: #0F7D9E;
    --acct-light: #A7C8E0;
    --acct-teal: #EAF2F0;
    --acct-ice: var(--cx-brand-soft, #E7F2F9);
    --acct-mist: var(--cx-panel, #F0F6FB);
    --acct-line: var(--cx-line, #E3ECF3);
    --acct-ink: var(--cx-fg, #2E2E2E);
    --acct-slate: var(--cx-muted, #55688B);
    --acct-green: #7FA653;
    --acct-danger: #B42318;
    --acct-danger-soft: #FEF3F2;
    --acct-ok: #3E7A2B;
    --acct-ok-soft: #EEF6EA;
    --acct-radius: 16px;
    --acct-radius-sm: 8px;
    --acct-control-h: 52px;
    --acct-btn-h: 54px;
    position: relative;
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    font-family: var(--cx-font-body, 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif);
    font-size: 16px;
    line-height: 24px;
    color: var(--acct-ink);
    background: linear-gradient(180deg, #EAF3FA 0%, #F3F8FC 45%, #FFFFFF 100%);
    -webkit-font-smoothing: antialiased;
    padding: 56px 16px 64px;
}
.acct-root *, .acct-root *::before, .acct-root *::after { box-sizing: border-box; }
.acct-root h1, .acct-root h2, .acct-root h3 { font-family: inherit !important; margin: 0; color: var(--acct-navy); font-weight: 700; text-transform: none; }
.acct-root p { font-family: inherit !important; font-size: 16px !important; line-height: 24px !important; margin: 0; color: var(--acct-slate); text-align: inherit; }
.acct-root a, .acct-root a:link, .acct-root a:visited { font-family: inherit; color: var(--acct-denim); text-decoration: none; }
.acct-root a:hover { color: var(--acct-navy); text-decoration: underline; }
.acct-root a:focus-visible, .acct-root button:focus-visible, .acct-root input:focus-visible, .acct-root select:focus-visible { outline: 3px solid var(--acct-denim); outline-offset: 2px; }
.acct-root svg { flex-shrink: 0; }
.acct-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Background: soft wave toward the bottom and a few blurred, rotated leaf-like shapes near the outer edges (CSS only). */
.acct-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.acct-bg-wave {
    position: absolute; left: -10%; right: -10%; bottom: -34%; height: 62%;
    background: #fff; border-radius: 50% 50% 0 0 / 100% 100% 0 0; opacity: .9;
}
.acct-leaf {
    position: absolute; display: block;
    width: 220px; height: 420px;
    background: linear-gradient(160deg, #CFE3F2 0%, #E2EFF8 60%, rgba(226,239,248,0) 100%);
    border-radius: 100% 0 100% 0;
    filter: blur(2px); opacity: .55;
}
.acct-leaf-1 { top: 2%; left: -70px; transform: rotate(-32deg); }
.acct-leaf-2 { top: 34%; left: -110px; width: 180px; height: 340px; transform: rotate(-58deg); opacity: .4; }
.acct-leaf-3 { top: 4%; right: -60px; transform: rotate(28deg) scaleX(-1); }
.acct-leaf-4 { top: 38%; right: -120px; width: 190px; height: 360px; transform: rotate(60deg) scaleX(-1); opacity: .4; }

/* Layout */
.acct-wrap { position: relative; max-width: 1180px; margin: 0 auto; }
.acct-card {
    position: relative; max-width: 620px; margin: 0 auto;
    background: #fff; border: 1px solid var(--acct-light); border-radius: var(--acct-radius);
    box-shadow: 0 2px 6px rgba(11,61,92,.05), 0 14px 36px rgba(11,61,92,.08);
    padding: 44px 40px 36px;
}
.acct-card-wide { max-width: 700px; }
.acct-head { text-align: center; margin-bottom: 26px; }
.acct-title { font-size: 36px !important; line-height: 42px !important; letter-spacing: -.01em; }
.acct-subtitle { color: var(--acct-denim) !important; font-size: 18px !important; line-height: 26px !important; margin-top: 6px !important; }
.acct-intro { max-width: 52ch; margin: 16px auto 0 !important; text-align: center; color: var(--acct-slate) !important; }

/* Alerts (server messages) */
.acct-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; margin: 0 0 18px; border-radius: var(--acct-radius-sm);
    font-size: 15px; line-height: 22px; border: 1px solid transparent;
}
.acct-alert-error { background: var(--acct-danger-soft); border-color: #F8C9C4; color: var(--acct-danger); }
.acct-alert-info { background: var(--acct-ice); border-color: #CFE3F2; color: var(--acct-navy); }
.acct-alert-success { background: var(--acct-ok-soft); border-color: #CFE5C4; color: var(--acct-ok); }
.acct-alert svg { margin-top: 2px; }
.acct-root .validation-summary-errors { color: var(--acct-danger); font-size: 15px; margin: 0 0 16px; }
.acct-root .validation-summary-errors ul { margin: 0; padding-left: 18px; }
.acct-root .validation-summary-valid { display: none; }

/* Fields */
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.acct-field { margin-bottom: 18px; min-width: 0; }
.acct-root .acct-label {
    display: block; margin: 0 0 8px; padding: 0;
    color: var(--acct-navy) !important; font-family: inherit !important; font-size: 15px !important; line-height: 20px; font-weight: 500;
    text-align: left;
}
.acct-req { color: #D92D20; font-weight: 600; margin-left: 2px; }
.acct-control { position: relative; }
.acct-control-icon {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; color: var(--acct-slate); pointer-events: none; display: flex; align-items: center; justify-content: center;
}
.acct-root .acct-input,
.acct-root select.acct-input {
    display: block; width: 100%; height: var(--acct-control-h); margin: 0;
    padding: 0 16px 0 48px;
    font-family: inherit !important; font-size: 16px !important; line-height: 24px; color: var(--acct-ink);
    background: #fff; border: 1px solid #C9DCEA; border-radius: 10px;
    box-shadow: none; appearance: none; -webkit-appearance: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.acct-root .acct-input::placeholder { color: #8DA2B8; opacity: 1; }
.acct-root .acct-input:focus { outline: none; border-color: var(--acct-denim); box-shadow: 0 0 0 4px rgba(15,125,158,.15); }
.acct-root .acct-input.input-validation-error { border-color: var(--acct-danger); }
.acct-root .acct-input.input-validation-error:focus { box-shadow: 0 0 0 4px rgba(180,35,24,.14); }
.acct-has-toggle .acct-input { padding-right: 56px; }
.acct-root select.acct-input {
    padding-right: 44px; cursor: pointer;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230F7D9E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 18px 18px;
}
.acct-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: 0; border-radius: 8px; padding: 0; cursor: pointer; color: var(--acct-denim);
}
.acct-toggle:hover { background: var(--acct-ice); }
.acct-toggle .acct-eye-off { display: none; }
.acct-toggle[aria-pressed="true"] .acct-eye-on { display: none; }
.acct-toggle[aria-pressed="true"] .acct-eye-off { display: block; }
.acct-root .acct-help { display: block; margin-top: 6px; font-size: 13px !important; line-height: 18px !important; color: var(--acct-slate) !important; }
.acct-root .field-validation-error { display: block; margin-top: 6px; font-size: 13px; line-height: 18px; color: var(--acct-danger); font-weight: 500; }
.acct-root .field-validation-valid { display: none; }

/* Remember me / forgot row */
.acct-row-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 2px 0 20px; }
.acct-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; }
.acct-root .acct-check input[type="checkbox"] {
    width: 22px; height: 22px; margin: 0; flex: 0 0 auto; accent-color: var(--acct-navy); cursor: pointer;
    border: 1px solid #C9DCEA; border-radius: 6px;
}
.acct-root .acct-check span { color: var(--acct-navy); font-size: 15px; line-height: 20px; }
.acct-root a.acct-link-strong { font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.acct-root a.acct-link-strong:hover { color: var(--acct-navy); }

/* Buttons */
.acct-root .acct-btn, .acct-root a.acct-btn, .acct-root a.acct-btn:link, .acct-root a.acct-btn:visited {
    display: inline-flex; width: 100%; min-height: var(--acct-btn-h); align-items: center; justify-content: center; gap: 10px;
    padding: 0 20px; margin: 0;
    font-family: inherit !important; font-size: 17px; line-height: 24px; font-weight: 600;
    border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.acct-root .acct-btn-primary, .acct-root a.acct-btn-primary, .acct-root a.acct-btn-primary:link, .acct-root a.acct-btn-primary:visited { background: var(--acct-navy); border-color: var(--acct-navy); color: #fff; }
.acct-root .acct-btn-primary:hover, .acct-root a.acct-btn-primary:hover { background: #0E4C72; border-color: #0E4C72; color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(11,61,92,.22); }
.acct-root .acct-btn-secondary, .acct-root a.acct-btn-secondary, .acct-root a.acct-btn-secondary:link, .acct-root a.acct-btn-secondary:visited { background: #F7FBFD; border-color: var(--acct-denim); color: var(--acct-denim); }
.acct-root .acct-btn-secondary:hover, .acct-root a.acct-btn-secondary:hover { background: var(--acct-ice); color: var(--acct-navy); border-color: var(--acct-navy); text-decoration: none; }
.acct-root .acct-btn[disabled], .acct-root .acct-btn[aria-busy="true"] { opacity: .75; cursor: progress; box-shadow: none; }
.acct-btn .acct-arrow { transition: transform .15s ease; }
.acct-btn:hover .acct-arrow { transform: translateX(3px); }
.acct-btn:hover .acct-arrow-back { transform: translateX(-3px); }
.acct-spinner {
    display: none; width: 18px; height: 18px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
    animation: acct-spin .8s linear infinite;
}
.acct-btn[aria-busy="true"] .acct-spinner { display: inline-block; }
.acct-btn[aria-busy="true"] .acct-arrow { display: none; }
@keyframes acct-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .acct-spinner { animation-duration: 2s; } .acct-btn .acct-arrow { transition: none; } }

/* "OR" divider */
.acct-or { display: flex; align-items: center; gap: 16px; margin: 22px 0; color: var(--acct-slate); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.acct-or::before, .acct-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--acct-line); }

/* Info / security panel inside the card */
.acct-panel {
    display: flex; align-items: flex-start; gap: 14px;
    margin-top: 22px; padding: 16px 18px;
    background: var(--acct-mist); border-radius: 12px; text-align: left;
}
.acct-panel-teal { background: var(--acct-teal); }
.acct-panel-icon {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--acct-ice); color: var(--acct-navy); display: inline-flex; align-items: center; justify-content: center;
}
.acct-panel-teal .acct-panel-icon { background: #D7E8F2; }
.acct-panel h3 { font-size: 16px !important; line-height: 22px !important; margin-bottom: 2px; }
.acct-root .acct-panel p { font-size: 14px !important; line-height: 21px !important; color: var(--acct-navy) !important; }

/* "Sign In to Continue" contextual panel (Login, protected-feature mode). Informational, never an alert: Teal Blue panel,
   circular Light-Blue icon disc with a Denim icon, navy heading, feature name in bold, registration link underlined. */
.acct-context {
    display: flex; align-items: flex-start; gap: 18px;
    margin: 0 0 24px; padding: 20px 22px;
    background: var(--acct-teal); border: 1px solid #D9E7E3; border-radius: 12px; text-align: left;
}
.acct-context-icon {
    flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%;
    background: #D7E8F2; color: var(--acct-denim); display: inline-flex; align-items: center; justify-content: center;
}
.acct-context-body { min-width: 0; flex: 1 1 auto; }
.acct-context-title { font-size: 20px !important; line-height: 26px !important; margin-bottom: 6px; }
.acct-root .acct-context-text { font-size: 16px !important; line-height: 24px !important; color: var(--acct-slate) !important; }
.acct-root .acct-context-text strong { color: var(--acct-navy); font-weight: 700; }
.acct-root .acct-context-register { margin-top: 10px !important; font-size: 15px !important; line-height: 22px !important; color: var(--acct-slate) !important; }
.acct-root .acct-context-register a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.acct-root .acct-context-register a:hover { color: var(--acct-navy); }
.acct-card-context .acct-head { margin-bottom: 22px; }
.acct-card-context .acct-panel { margin-top: 24px; }
@media (max-width: 767px) {
    .acct-context { gap: 14px; padding: 16px; }
    .acct-context-icon { flex-basis: 52px; width: 52px; height: 52px; }
    .acct-context-icon svg { width: 26px; height: 26px; }
    .acct-context-title { font-size: 18px !important; line-height: 24px !important; }
}
@media (max-width: 420px) {
    .acct-context { flex-direction: column; align-items: flex-start; }
}

/* Simple legal line (registration) */
.acct-root .acct-legal { text-align: center; font-size: 14px !important; line-height: 21px !important; margin: 4px 0 20px !important; }

/* Confirmation / status card icon */
.acct-status-icon {
    width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--acct-ice); color: var(--acct-navy); display: flex; align-items: center; justify-content: center;
}
.acct-actions { margin-top: 26px; }

/* reCAPTCHA (registration) */
.acct-captcha { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 22px; }
.acct-captcha .g-recaptcha { max-width: 100%; }

/* Supporting message + three feature highlights (Views/Account/_AccountFeatures.cshtml) */
.acct-support { text-align: center; margin: 38px auto 0; max-width: 760px; }
.acct-support h2 { font-size: 26px !important; line-height: 32px !important; }
.acct-root .acct-support p { margin-top: 8px !important; font-size: 17px !important; line-height: 26px !important; }
.acct-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 36px auto 0; max-width: 1180px; }
.acct-feature { display: flex; align-items: center; gap: 16px; padding: 4px 28px; border-left: 1px solid var(--acct-light); }
.acct-feature:first-child { border-left: 0; }
.acct-root a.acct-feature, .acct-root a.acct-feature:link, .acct-root a.acct-feature:visited { color: inherit; text-decoration: none; border-radius: 12px; }
.acct-root a.acct-feature:hover { text-decoration: none; background: rgba(255,255,255,.6); }
.acct-root a.acct-feature:hover h3 { color: var(--acct-denim); }
.acct-feature-icon {
    flex: 0 0 72px; width: 72px; height: 72px; border-radius: 50%;
    background: #DCECF7; color: var(--acct-navy); display: inline-flex; align-items: center; justify-content: center;
}
.acct-feature h3 { font-size: 17px !important; line-height: 22px !important; margin-bottom: 4px; }
.acct-root .acct-feature p { font-size: 15px !important; line-height: 22px !important; text-align: left; }

/* Responsive */
@media (max-width: 991px) {
    .acct-root { padding: 40px 16px 48px; }
    .acct-feature { padding: 4px 16px; }
}
@media (max-width: 767px) {
    .acct-root { padding: 28px 16px 40px; }
    .acct-bg-wave { display: none; }
    .acct-leaf { display: none; }
    .acct-leaf-1, .acct-leaf-3 { display: block; width: 150px; height: 280px; opacity: .3; }
    .acct-leaf-1 { left: -90px; top: 0; }
    .acct-leaf-3 { right: -90px; top: 0; }
    .acct-card { padding: 32px 22px 28px; border-radius: 14px; }
    .acct-title { font-size: 30px !important; line-height: 36px !important; }
    .acct-subtitle { font-size: 16px !important; line-height: 24px !important; }
    .acct-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .acct-support { margin-top: 30px; }
    .acct-support h2 { font-size: 22px !important; line-height: 28px !important; }
    .acct-features { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 26px; }
    .acct-feature { border-left: 0; padding: 0; }
    .acct-feature-icon { flex-basis: 60px; width: 60px; height: 60px; }
}
@media (max-width: 420px) {
    .acct-card { padding: 28px 16px 24px; }
    .acct-root .acct-btn { font-size: 16px; }
}
