@font-face {
    font-family: Peyda;
    src: url("../fonts/Peyda-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Peyda;
    src: url("../fonts/Peyda-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}

body.identity {
    color-scheme: light;
    --identity-navy: #102e53;
    --identity-action: #102e53;
    --identity-action-hover: #24496f;
    --identity-ink: #242a36;
    --identity-muted: #4b5465;
    --identity-work: #f3f4f7;
    --identity-side: #fafbfc;
    --identity-line: #dfe4ec;
    --identity-blue: #24496f;
    --identity-soft: #e7ecf5;
    --identity-focus: #476d9a;
    --identity-shadow: 0 2px 6px #30394c08, 0 12px 30px #30394c0d;
    --identity-canvas: #e8eaf0;
    --identity-glow: #f8f9fb;
    --identity-panel: #fff;
    --identity-frame: #fff;
    --identity-hover: #d8e2f2;
    --identity-danger-bg: #fff0f1; --identity-danger-ink: #942030;
    --identity-warning-bg: #fff4df; --identity-warning-ink: #694800; --identity-warning-line: #e6c681;
    --identity-success-bg: #def3e9; --identity-success-ink: #206254;
    --identity-sky: #d6e6ff; --identity-sky-ink: #133d67;
    --identity-lavender: #eee5fb; --identity-lavender-ink: #513873;
    --identity-mint: #dcf2e8; --identity-mint-ink: #225b4d;
    --identity-peach: #ffeada; --identity-peach-ink: #73462b;
    --identity-aqua: #dceff5; --identity-aqua-ink: #215a6b;
    --identity-rose: #f8e5ee; --identity-rose-ink: #773a5a;
    min-height: 100vh;
    margin: 0;
    padding: clamp(18px, 4vw, 56px) 16px;
    background: radial-gradient(ellipse at 75% 0, var(--identity-glow), var(--identity-canvas) 72%);
    color: var(--identity-ink);
    font: 400 15px/1.7 Peyda, Tahoma, sans-serif;
    text-align: start;
}

[data-identity-theme="dark"] body.identity {
    color-scheme: dark;
    --identity-navy: #e1edff;
    --identity-action: #bcd4ff;
    --identity-action-hover: #d2e2ff;
    --identity-ink: #edf1f8;
    --identity-muted: #bec9da;
    --identity-canvas: #151922;
    --identity-glow: #293143;
    --identity-work: #1c222e;
    --identity-side: #242b38;
    --identity-panel: #2b3241;
    --identity-line: #424c60;
    --identity-blue: #c0d1ef;
    --identity-soft: #34415a;
    --identity-hover: #415273;
    --identity-focus: #a2b8e1;
    --identity-frame: #39445a;
    --identity-shadow: 0 2px 7px #0b101b33, 0 12px 30px #0b101b38;
    --identity-danger-bg: #492b37; --identity-danger-ink: #ffd6df;
    --identity-warning-bg: #463a2a; --identity-warning-ink: #ffdc9a; --identity-warning-line: #866d46;
    --identity-success-bg: #253f39; --identity-success-ink: #b6edda;
    --identity-sky: #30476a; --identity-sky-ink: #d7e6ff;
    --identity-lavender: #463c59; --identity-lavender-ink: #f0dfff;
    --identity-mint: #2d4943; --identity-mint-ink: #c3f2e1;
    --identity-peach: #513c32; --identity-peach-ink: #ffdec6;
    --identity-aqua: #2b4852; --identity-aqua-ink: #c8f0fa;
    --identity-rose: #4b384c; --identity-rose-ink: #ffdcf0;
}

.identity-shell,
.identity-shell *,
.identity-shell *::before,
.identity-shell *::after {
    box-sizing: border-box;
}

.identity :focus-visible {
    outline: 2px solid var(--identity-focus);
    outline-offset: 3px;
}

.identity-skip {
    position: fixed;
    inset-block-start: 10px;
    inset-inline-start: 12px;
    z-index: 1100;
    padding: 8px 16px;
    border-radius: 12px;
    background: #102e53;
    color: white;
    transform: translateY(-150%);
}

.identity-skip:focus { color: white; transform: none; }

.identity-shell {
    max-width: 1056px;
    margin-inline: auto;
    border: 1px solid var(--identity-frame);
    border-radius: 36px;
    background: var(--identity-work);
    box-shadow: 0 26px 76px #2a334819;
}

.identity-topbar,
.identity-site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 14px clamp(16px, 4vw, 36px);
    background: var(--identity-side);
}

.identity-topbar {
    min-height: 80px;
    border-radius: 36px 36px 0 0;
    border-bottom: 1px solid var(--identity-line);
}

.identity-theme[hidden] { display: none !important; }
.identity-theme {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid var(--identity-line);
    border-radius: 15px;
    background: var(--identity-work);
}

.identity-theme button {
    display: grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--identity-muted);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.identity-theme button:is(:hover, [aria-pressed="true"]) {
    color: var(--identity-navy);
    background: var(--identity-soft);
}

.identity-brand { display: flex; align-items: center; gap: 12px; }
.identity-brand strong,
.identity-brand small { display: block; }
.identity-brand strong { font-size: 17px; line-height: 1.4; }
.identity-brand small { color: var(--identity-muted); font-size: 13px; }

.identity-mark,
.identity-cover-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #102e53;
    color: white;
}

.identity-mark img,
.identity-cover-mark img { display: block; object-fit: contain; }

.identity-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(16px, 3vw, 28px);
    padding: clamp(16px, 4vw, 36px);
}

.identity-main,
.identity-guidance,
.identity-cover {
    min-width: 0;
    padding: clamp(18px, 3vw, 30px);
    border-radius: 24px;
    background: var(--identity-panel);
    box-shadow: var(--identity-shadow);
}

.identity-sidebar { display: grid; min-width: 0; gap: 16px; }

.identity-cover {
    display: grid;
    justify-items: start;
    gap: 4px;
    color: white;
    background:
        radial-gradient(circle at 12% -30%, transparent 43%, #ffffff24 43% 43.4%,
            #ffffff0a 43.4% 51%, #ffffff05 51% 59%, transparent 59%),
        linear-gradient(125deg, #11325a, #102e53 55%, #102c4e);
}

.identity-cover-mark { width: 60px; height: 60px; margin-bottom: 9px; background: #ffffff20; }
.identity-cover-label { color: #d4e1f2; font-size: 13px; }
.identity-cover strong { font-size: 26px; line-height: 1.4; }
.identity-cover p { margin: 0; color: #e1eaf6; font-size: 14px; }
.identity-guidance h2 { margin: 0 0 8px; font: 700 18px/1.35 Peyda, Tahoma, sans-serif; }
.identity-guidance p { margin: 0 0 10px; color: var(--identity-muted); text-align: start !important; }
.identity-guidance p:last-child { margin-bottom: 0; }
.identity-guidance a { color: var(--identity-blue); text-decoration: underline; }

.identity-sms-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    margin-block-start: 12px;
    padding: 12px;
    border: 1px solid var(--identity-warning-line);
    border-inline-start-width: 3px;
    border-radius: 12px;
    background: var(--identity-warning-bg);
    color: var(--identity-warning-ink);
    font-size: 14px;
}

.identity-sms-notice strong { display: block; margin-block-end: 3px; }
.identity-sms-notice bdi { font-weight: 700; }
.identity-sms-notice-icon { display: grid; place-items: center; width: 26px; height: 26px; }

.identity-site-footer {
    border-top: 1px solid var(--identity-line);
    border-radius: 0 0 36px 36px;
}

.identity-site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.identity-site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--identity-blue);
    font-size: 13px;
}

.identity-site-footer .identity-social { gap: 4px; }
.identity-social a { width: 44px; justify-content: center; border-radius: 12px; font-size: 18px; }
.identity-social a:hover { background: var(--identity-soft); }

.identity-main .card-plain,
.identity-main .card {
    margin: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.identity-main .card-plain > .header,
.identity-main .card > .header {
    margin: 0 0 16px;
    padding: 0;
    color: inherit;
    text-align: start;
}

.identity-main .card > .body { padding: 0; }
.identity-main h1,
.identity-main .header > :is(h3, h4, h5),
.identity-main .page-header > h3 {
    margin: 0 0 8px;
    color: var(--identity-ink);
    font: 700 clamp(22px, 3vw, 28px)/1.35 Peyda, Tahoma, sans-serif !important;
}

.identity-main h1 small { display: block; margin-top: 8px; color: var(--identity-muted); font-size: 15px; }
.identity-main .identity-intro { margin: 0; color: var(--identity-muted); }
.identity-main .nav-right { padding: 0; }

.identity-main ul.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 18px;
    padding: 4px;
    border: 0;
    border-radius: 18px;
    background: var(--identity-work);
    list-style: none;
}

.identity-main .nav-tabs > .nav-item { flex: 1 1 0; min-width: 0; }
.identity-main .nav-tabs > .nav-item > .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 !important;
    padding: 10px 6px;
    border: 0;
    border-radius: 14px;
    color: var(--identity-muted);
    background: transparent;
    font: 700 14px/1.6 Peyda, Tahoma, sans-serif;
    text-align: center;
    text-decoration: none;
}

.identity-main .nav-tabs > .nav-item > .nav-link.active,
.identity-main .nav-tabs > .nav-item > .nav-link:hover {
    background: var(--identity-soft);
    color: var(--identity-navy);
}

.identity-main .tab-content { padding: 0; }
.identity-main .tab-content > .tab-pane:not(.active) { display: none; }
.identity-main .tab-content > .tab-pane.active { display: block; }
.identity-main .form-group,
.identity-main .input-group { margin: 0 0 12px; }
.identity-main .input-group { display: flex; align-items: stretch; flex-wrap: nowrap; }
.identity-main .input-group:has(> .g-recaptcha) { margin: 0; }
.identity-main .identity-label { display: block; margin-bottom: 5px; color: var(--identity-ink); font-weight: 700; }

.identity-code [hidden] { display: none !important; }
.identity-code-digits {
    display: flex;
    justify-content: center;
    gap: clamp(3px, 1.4vw, 10px);
    width: 100%;
}

.identity-code-digit {
    flex: 1 1 0;
    width: 0;
    max-width: 58px;
    min-width: 0;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--identity-line);
    border-radius: 12px;
    background: var(--identity-side);
    color: var(--identity-navy);
    font: 700 clamp(16px, 4vw, 24px)/1 Peyda, Tahoma, sans-serif;
    text-align: center;
}

.identity-code-digit:focus { border-color: var(--identity-focus); background: var(--identity-panel); }

.identity-phone-choices { min-inline-size: 0; margin: 16px 0 0; padding: 0; border: 0; }
.identity-phone-choices legend { float: none; width: auto; padding: 0; font: inherit; font-weight: 700; }
.identity-phone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.identity-phone-option { position: relative; display: block; margin: 0; cursor: pointer; }
.identity-phone-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.identity-phone-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 8px 10px;
    border: 1px solid var(--identity-line);
    border-radius: 14px;
    background: var(--identity-side);
    color: var(--identity-navy);
    font-weight: 700;
}

.identity-phone-card bdi { text-align: center; overflow-wrap: anywhere; }
.identity-phone-icon,
.identity-phone-check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.identity-phone-icon { background: var(--identity-soft); }
.identity-phone-check { visibility: hidden; background: var(--identity-action); color: var(--identity-canvas); }
.identity-phone-option input:checked + .identity-phone-card { border-color: var(--identity-focus); background: var(--identity-soft); }
.identity-phone-option input:checked + .identity-phone-card .identity-phone-check { visibility: visible; }
.identity-phone-option input:focus-visible + .identity-phone-card { outline: 2px solid var(--identity-focus); outline-offset: 3px; }
.identity-phone-option:hover .identity-phone-card { border-color: var(--identity-focus); }

.identity-main :is(.form-control, .bootstrap-select > .dropdown-toggle) {
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 10px 13px;
    border: 1px solid var(--identity-line);
    border-radius: 12px;
    background: var(--identity-side);
    color: var(--identity-ink);
    font: inherit;
    text-align: start;
    box-shadow: none;
}

.identity-main :is(input, select, textarea).form-control { width: 100%; }
.identity-main textarea.form-control { height: auto; }
.identity-main .form-control::placeholder,
.identity-main .form-control > input::placeholder { color: var(--identity-muted); opacity: 1; }
.identity-main .form-control:focus-within,
.identity-main .bootstrap-select > .dropdown-toggle:focus { border-color: var(--identity-focus); }

.identity-main .input-group > .form-control {
    flex: 1 1 0;
    width: 1%;
    border-start-end-radius: 0;
    border-end-end-radius: 0;
}

.identity-main .input-group > .form-control:only-child,
.identity-main .input-group > .form-control:has(+ .material-input) { border-radius: 12px; }
.identity-main .input-group > .form-control > input {
    width: 100%;
    min-width: 0;
    margin: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.identity-main .input-group > .input-group-addon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid var(--identity-line);
    border-inline-start: 0;
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-start-end-radius: 12px;
    border-end-end-radius: 12px;
    background: var(--identity-soft);
    color: var(--identity-blue);
}

.identity-main .input-group-addon :is(.prefix-icon, .zmdi) { margin: 0 !important; }
.identity-main .prefix-style { color: inherit; }
.identity-main .prefix-color-gray .prefix-style:empty { display: none; }
.identity-main .bootstrap-select { width: 100% !important; }
.identity-main #frmSignIn .bootstrap-select.form-control {
    height: auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.identity-main .bootstrap-select > .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    color: var(--identity-ink);
    background: var(--identity-side);
    white-space: normal;
}

.identity-main .bootstrap-select .filter-option { text-align: start; }
.identity-main .bootstrap-select > .dropdown-menu {
    min-width: 100%;
    padding: 6px;
    border: 1px solid var(--identity-line);
    border-radius: 14px;
    color: var(--identity-ink);
    background: var(--identity-panel);
    box-shadow: var(--identity-shadow);
    text-align: start;
}

.identity-main .bootstrap-select .dropdown-menu.inner {
    max-height: min(292px, 45vh);
    overflow-y: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    scrollbar-color: var(--identity-focus) var(--identity-side);
    scrollbar-width: thin;
}

.identity-main .bootstrap-select li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 7px 10px;
    border-radius: 9px;
    color: var(--identity-ink);
    background: transparent;
    font: inherit;
    text-align: start;
    white-space: normal;
}

.identity-main .bootstrap-select li > a:is(:hover, :focus-visible),
.identity-main .bootstrap-select li:is(.active, .selected) > a,
.identity-main .bootstrap-select li > a.active {
    color: var(--identity-navy);
    background: var(--identity-soft);
}

@supports (appearance: base-select) {
    .identity-main select.selectpicker,
    .identity-main select.selectpicker::picker(select) { appearance: base-select; }
    .identity-main select.selectpicker::picker(select) {
        max-block-size: min(320px, 55vh);
        margin-block: 5px;
        padding: 6px;
        border: 1px solid var(--identity-line);
        border-radius: 14px;
        color: var(--identity-ink);
        background: var(--identity-panel);
        box-shadow: var(--identity-shadow);
    }
    .identity-main select.selectpicker option {
        gap: 8px;
        min-height: 42px;
        padding: 7px 10px;
        border-radius: 9px;
    }
    .identity-main select.selectpicker option:is(:hover, :focus-visible, :checked) { background: var(--identity-soft); }
}

.identity-main .validation-error,
.identity-main .input-validation-error { border-color: var(--identity-danger-ink) !important; }
.identity-main .field-validation-error { color: var(--identity-danger-ink); }

.identity-main .footer {
    margin: 16px 0 0;
    padding: 0;
    background: transparent;
    color: inherit;
}

.identity-main .btn,
.identity .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--identity-soft);
    color: var(--identity-navy);
    box-shadow: none;
    font: 700 14px/1.5 Peyda, Tahoma, sans-serif;
    white-space: normal;
    text-align: center;
    text-decoration: none;
}

.identity-main .btn-block { display: flex; width: 100%; }
.identity [data-identity-icon]::before {
    display: inline-block;
    flex: 0 0 auto;
    width: 1.2em;
    vertical-align: middle;
}

.identity :is(a, button)[data-identity-icon]::before {
    content: var(--identity-icon-glyph);
    content: var(--identity-icon-glyph) / "";
    font: 900 1em/1 "Font Awesome 5 Free";
    text-align: center;
}

.identity [data-identity-icon="refresh"] { align-items: center; gap: 5px; }

.identity [data-identity-icon="back"] { --identity-icon-glyph: "\f061"; }
.identity [data-identity-icon="next"] { --identity-icon-glyph: "\f060"; }
.identity [data-identity-icon="login"] { --identity-icon-glyph: "\f2f6"; }
.identity [data-identity-icon="logout"] { --identity-icon-glyph: "\f2f5"; }
.identity [data-identity-icon="refresh"] { --identity-icon-glyph: "\f2f9"; }
.identity [data-identity-icon="message"] { --identity-icon-glyph: "\f7cd"; }
.identity [data-identity-icon="chat"] { --identity-icon-glyph: "\f4ad"; }
.identity [data-identity-icon="mail"] { --identity-icon-glyph: "\f0e0"; }
.identity [data-identity-icon="shield"] { --identity-icon-glyph: "\f3ed"; }
.identity [data-identity-icon="lock"] { --identity-icon-glyph: "\f023"; }
.identity [data-identity-icon="key"] { --identity-icon-glyph: "\f084"; }
.identity [data-identity-icon="fingerprint"] { --identity-icon-glyph: "\f577"; }
.identity [data-identity-icon="check"] { --identity-icon-glyph: "\f00c"; }
.identity [data-identity-icon="close"] { --identity-icon-glyph: "\f00d"; }
.identity [data-identity-icon="external"] { --identity-icon-glyph: "\f35d"; }
.identity [data-identity-icon="badge"] { --identity-icon-glyph: "\f2c2"; }
.identity [data-identity-icon="briefcase"] { --identity-icon-glyph: "\f0b1"; }
.identity [data-identity-icon="users"] { --identity-icon-glyph: "\f0c0"; }
.identity [data-identity-icon="building"] { --identity-icon-glyph: "\f19c"; }
.identity [data-identity-icon="pen"] { --identity-icon-glyph: "\f304"; }
.identity [data-identity-icon="copy"] { --identity-icon-glyph: "\f0c5"; }
.identity [data-identity-icon="sun"] { --identity-icon-glyph: "\f185"; }
.identity [data-identity-icon="moon"] { --identity-icon-glyph: "\f186"; }
.identity [data-identity-icon="monitor"] { --identity-icon-glyph: "\f108"; }

.identity :not(a, button)[data-identity-icon]::before {
    content: "";
    height: 1.2em;
    background: currentColor;
    -webkit-mask: var(--identity-action-icon) center / contain no-repeat;
    mask: var(--identity-action-icon) center / contain no-repeat;
}

.identity :not(a, button)[data-identity-icon="keyboard"] { --identity-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.7'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Crect%20x%3D'2.5'%20y%3D'5'%20width%3D'19'%20height%3D'14'%20rx%3D'2'%2F%3E%3Cpath%20d%3D'M6.5%209h.01m3.66%200h.01m3.66%200h.01m3.66%200h.01M6.5%2012.5h.01m3.66%200h.01m3.66%200h.01m3.66%200h.01M8%2016h8'%2F%3E%3C%2Fsvg%3E"); }
.identity :not(a, button)[data-identity-icon="message"] { --identity-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.7'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M4%205h16v12H9l-5%203V5Zm4%204h8m-8%204h6'%2F%3E%3C%2Fsvg%3E"); }
.identity :not(a, button)[data-identity-icon="check"] { --identity-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.7'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm5%2012%205%205%209-10'%2F%3E%3C%2Fsvg%3E"); }
.identity :not(a, button)[data-identity-icon="info"] { --identity-action-icon: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.7'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'9'%2F%3E%3Cpath%20d%3D'M12%2011v5m0-8h.01'%2F%3E%3C%2Fsvg%3E"); }

@media (forced-colors: active) {
    .identity :not(a, button)[data-identity-icon]::before { forced-color-adjust: none; }
}

.identity-main .btn:not(.dropdown-toggle):not(:disabled):hover,
.identity .modal-footer .btn:hover { background: var(--identity-hover); color: var(--identity-navy); }
.identity-main .btn-primary:not(.btn-simple),
.identity-main .identity-primary { background: var(--identity-action); color: var(--identity-canvas); }
.identity-main .btn-primary:not(.btn-simple):not(:disabled):hover,
.identity-main .identity-primary:not(:disabled):hover { background: var(--identity-action-hover); color: var(--identity-canvas); }
.identity-main .btn:disabled,
.identity-main .btn.disabled { opacity: .62; cursor: default; }

.identity-login .btn:not(.dropdown-toggle) {
    --login-surface: var(--identity-sky);
    --login-ink: var(--identity-sky-ink);
    background: var(--login-surface);
    color: var(--login-ink);
}

.identity-login .btn:is([data-identity-icon="mail"], [data-identity-icon="shield"]) {
    --login-surface: var(--identity-lavender); --login-ink: var(--identity-lavender-ink);
}
.identity-login .btn[data-identity-icon="chat"] {
    --login-surface: var(--identity-mint); --login-ink: var(--identity-mint-ink);
}
.identity-login .btn:is([data-identity-icon="key"], [data-identity-icon="pen"]) {
    --login-surface: var(--identity-peach); --login-ink: var(--identity-peach-ink);
}
.identity-login .btn[data-identity-icon="building"] {
    --login-surface: var(--identity-aqua); --login-ink: var(--identity-aqua-ink);
}
.identity-login .btn.identity-passkey {
    --login-surface: var(--identity-rose); --login-ink: var(--identity-rose-ink);
}
.identity-main .identity-login .btn:not(.dropdown-toggle):not(:disabled):hover {
    background: var(--login-surface);
    color: var(--login-ink);
    border-color: currentColor;
}

.identity-main .identity-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.identity-main .identity-actions > .btn { margin: 0; }
.identity-main .identity-actions > .identity-primary,
.identity-main .identity-method-title,
.identity-main .identity-setup { grid-column: 1 / -1; }
.identity-main .identity-method-title {
    margin: 10px 0 0;
    color: var(--identity-muted);
    font-size: 13px;
}

.identity-main .identity-setup {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 14px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--identity-line);
}

.identity-main .identity-setup a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    color: var(--identity-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.identity-main .alert {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--identity-soft);
    color: var(--identity-navy);
}

.identity-main .alert-danger { background: var(--identity-danger-bg); color: var(--identity-danger-ink); }
.identity-main .alert-warning { background: var(--identity-warning-bg); color: var(--identity-warning-ink); }
.identity-main .alert-success { background: var(--identity-success-bg); color: var(--identity-success-ink); }
.identity .modal-content { color: var(--identity-ink); background: var(--identity-panel); }
.identity .modal-header,
.identity .modal-footer { border-color: var(--identity-line); }
.identity .text-danger { color: var(--identity-danger-ink) !important; }
.identity-main .alert :is(p, h6):last-child { margin-bottom: 0; }
.identity-main .progress-container { margin-bottom: 10px; border-radius: 999px; background: var(--identity-soft); overflow: hidden; }
.identity-main .progress-bar { width: 1%; height: 5px; background: var(--identity-blue); }
.identity-main img { max-width: 100%; }
.identity-main iframe:not([src*="recaptcha"]) { max-width: 100%; }
.identity-main .page-consent .row,
.identity-main .logout-page .row { margin-inline: 0; }
.identity-main .page-consent .row > *,
.identity-main .logout-page .row > * { flex: 0 0 100%; max-width: 100%; padding-inline: 0; }
.identity-main .consent-buttons:not(.panel) { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 760px) {
    body.identity { padding: 0; }
    .identity-shell { border: 0; border-radius: 0; box-shadow: none; }
    .identity-topbar,
    .identity-site-footer { border-radius: 0; }
    .identity-workspace { grid-template-columns: minmax(0, 1fr); }
    .identity-sidebar .identity-cover { display: none; }
    .identity-sidebar:not(:has(.identity-guidance)) { display: none; }
}

@media (max-width: 420px) {
    .identity-topbar { min-height: 0; gap: 8px; }
    .identity-main .identity-actions { grid-template-columns: minmax(0, 1fr); }
}
