/* CloudToolz account and Identity-area presentation. */

:root {
    --identity-canvas: #f5f7fb;
    --identity-surface: #ffffff;
    --identity-surface-muted: #f8f9fc;
    --identity-text: #172033;
    --identity-muted: #667085;
    --identity-border: #dfe3eb;
    --identity-brand: #41519e;
    --identity-brand-dark: #29366f;
    --identity-brand-light: #7181cf;
    --identity-brand-soft: #eef0fa;
    --identity-danger: #b42318;
    --identity-warning: #b54708;
    --identity-success: #067647;
    --identity-radius: 0.75rem;
    --identity-radius-lg: 1.25rem;
    --identity-shadow: 0 24px 64px rgb(16 24 40 / 0.12);
}

:root[data-bs-theme="dark"] {
    --identity-canvas: #0c111d;
    --identity-surface: #161b26;
    --identity-surface-muted: #1f242f;
    --identity-text: #f2f4f7;
    --identity-muted: #a7b0c0;
    --identity-border: #343c4a;
    --identity-brand: #9aa8ec;
    --identity-brand-dark: #7181cf;
    --identity-brand-light: #b5bff2;
    --identity-brand-soft: rgb(113 129 207 / 0.18);
    --identity-danger: #fda29b;
    --identity-warning: #fec84b;
    --identity-success: #6ce9a6;
    --identity-shadow: 0 24px 64px rgb(0 0 0 / 0.34);
    --ct-canvas: var(--identity-canvas);
    --ct-surface: var(--identity-surface);
    --ct-surface-muted: var(--identity-surface-muted);
    --ct-text: var(--identity-text);
    --ct-text-muted: var(--identity-muted);
    --ct-border: var(--identity-border);
    --ct-border-strong: #475467;
    --ct-brand: var(--identity-brand);
    --ct-brand-soft: var(--identity-brand-soft);
    --ct-focus: var(--identity-brand-light);
    color-scheme: dark;
}

body.identity-shell {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--identity-text);
    background: var(--identity-canvas);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.identity-shell *,
.identity-shell *::before,
.identity-shell *::after {
    box-sizing: border-box;
}

.identity-page {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(25rem, 0.88fr) minmax(34rem, 1.12fr);
}

.identity-brand-panel {
    min-height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 4.5rem);
    color: #fff;
    background:
        radial-gradient(circle at 8% 6%, rgb(135 153 237 / 0.36), transparent 31rem),
        linear-gradient(145deg, var(--identity-brand-dark) 0%, var(--identity-brand) 58%, #5667bc 100%);
    isolation: isolate;
}

.identity-brand-panel::after {
    width: 28rem;
    height: 28rem;
    position: absolute;
    right: -13rem;
    bottom: -13rem;
    z-index: -1;
    border: 1px solid rgb(255 255 255 / 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgb(255 255 255 / 0.025),
        0 0 0 8rem rgb(255 255 255 / 0.02);
    content: "";
}

.identity-brand-panel__glow {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.identity-brand-panel__glow--one {
    width: 15rem;
    height: 15rem;
    top: 18%;
    right: -8rem;
    background: rgb(86 205 234 / 0.15);
}

.identity-brand-panel__glow--two {
    width: 11rem;
    height: 11rem;
    left: -6rem;
    bottom: 20%;
    background: rgb(255 220 94 / 0.1);
}

.identity-brand,
.identity-mobile-brand {
    display: inline-flex;
    width: 13rem;
    position: relative;
    z-index: 1;
}

.identity-brand img,
.identity-mobile-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.identity-brand-panel__content {
    width: min(100%, 34rem);
    margin-block: auto;
    padding-block: 4rem;
}

.identity-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.75rem;
    color: #eef0ff;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-eyebrow::before {
    width: 0.45rem;
    height: 0.45rem;
    background: #78e4c2;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgb(120 228 194 / 0.13);
    content: "";
}

.identity-brand-panel h1 {
    max-width: 13ch;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 3.65rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.identity-brand-panel__content > p {
    max-width: 31rem;
    margin: 1.5rem 0 0;
    color: rgb(245 246 255 / 0.78);
    font-size: clamp(1rem, 1.35vw, 1.15rem);
    line-height: 1.65;
}

.identity-benefits {
    display: grid;
    gap: 0.9rem;
    margin: 2.25rem 0 0;
    padding: 0;
    list-style: none;
}

.identity-benefits li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgb(255 255 255 / 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.identity-benefits__icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
    place-items: center;
    color: #fff;
    background: rgb(255 255 255 / 0.1);
    border: 1px solid rgb(255 255 255 / 0.13);
    border-radius: 0.55rem;
    font-size: 1rem;
}

.identity-brand-panel__footer {
    margin: 0;
    color: rgb(255 255 255 / 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.identity-main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2rem, 6vw, 6rem);
    background:
        linear-gradient(rgb(245 247 251 / 0.9), rgb(245 247 251 / 0.9)),
        radial-gradient(circle at 80% 10%, var(--identity-brand-soft), transparent 26rem);
}

:root[data-bs-theme="dark"] .identity-main {
    background:
        linear-gradient(rgb(12 17 29 / 0.92), rgb(12 17 29 / 0.92)),
        radial-gradient(circle at 80% 10%, var(--identity-brand-soft), transparent 26rem);
}

:root[data-bs-theme="dark"] .identity-shell .form-control,
:root[data-bs-theme="dark"] .identity-shell .form-select,
:root[data-bs-theme="dark"] .identity-shell input:not([type="checkbox"]):not([type="radio"]),
:root[data-bs-theme="dark"] .identity-shell select,
:root[data-bs-theme="dark"] .identity-shell textarea {
    color: var(--identity-text) !important;
    background-color: var(--identity-surface) !important;
    border-color: var(--identity-border) !important;
}

:root[data-bs-theme="dark"] .identity-shell .form-control::placeholder,
:root[data-bs-theme="dark"] .identity-shell textarea::placeholder {
    color: var(--identity-muted);
}

:root[data-bs-theme="dark"] .identity-shell .alert-danger,
:root[data-bs-theme="dark"] .identity-shell .validation-summary-errors {
    color: var(--identity-danger) !important;
    background: rgb(180 35 24 / 0.14) !important;
    border-color: rgb(253 162 155 / 0.28) !important;
}

.identity-mobile-brand {
    display: none;
}

.identity-card {
    width: min(100%, 31rem);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    background: var(--identity-surface);
    border: 1px solid rgb(208 213 221 / 0.78);
    border-radius: var(--identity-radius-lg);
    box-shadow: var(--identity-shadow);
}

.identity-card > .text-center:first-child,
.identity-card > header:first-child,
.identity-card > .alert:first-child + .text-center {
    margin-top: 0 !important;
}

.identity-card h1,
.identity-card h2,
.identity-card h3,
.identity-card h4,
.identity-card h5 {
    color: var(--identity-text);
    font-family: inherit;
    letter-spacing: -0.025em;
}

.identity-card h1,
.identity-card h2,
.identity-card h4,
.identity-card h5 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 650;
}

.identity-card hr {
    margin-block: 1.5rem;
    border-color: var(--identity-border);
    opacity: 1;
}

.identity-card .text-muted,
.identity-card p {
    color: var(--identity-muted) !important;
}

.identity-card .p-2 {
    padding: 0 !important;
}

.identity-card form {
    margin-top: 1.75rem;
}

.identity-card form:first-child,
.identity-card .p-2 > form {
    margin-top: 0;
}

.identity-shell .form-label,
.identity-shell label:not(.form-check-label) {
    margin-bottom: 0.45rem;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 600;
}

.identity-shell .form-control,
.identity-shell .form-select,
.identity-shell .e-input-group,
.identity-shell .e-input-group.e-control-wrapper {
    min-height: 2.85rem;
    color: var(--identity-text);
    background: #fff;
    border: 1px solid var(--identity-border) !important;
    border-radius: var(--identity-radius) !important;
    box-shadow: 0 1px 2px rgb(16 24 40 / 0.03) !important;
    font-family: inherit;
}

.identity-shell .form-control {
    padding: 0.7rem 0.85rem;
}

.identity-shell .form-control::placeholder {
    color: #98a2b3;
}

.identity-shell .form-control:focus,
.identity-shell .form-select:focus,
.identity-shell .e-input-group.e-input-focus,
.identity-shell .e-input-group.e-control-wrapper.e-input-focus {
    border-color: var(--identity-brand-light) !important;
    outline: 0;
    box-shadow: 0 0 0 0.22rem rgb(65 81 158 / 0.14) !important;
}

.identity-shell .form-control:disabled,
.identity-shell .form-control[readonly] {
    color: #667085;
    background: var(--identity-surface-muted) !important;
    opacity: 1;
}

.identity-shell .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding-left: 0;
}

.identity-shell .form-check-input {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
    float: none;
    margin: 0;
    border-color: #b8c0cc;
}

.identity-shell .form-check-input:checked {
    background-color: var(--identity-brand);
    border-color: var(--identity-brand);
}

.identity-shell .form-check-label {
    color: #475467;
    font-size: 0.84rem;
}

.identity-shell a {
    color: var(--identity-brand);
    font-weight: 550;
    text-underline-offset: 0.16em;
}

.identity-shell a:hover {
    color: var(--identity-brand-dark);
}

.identity-shell .btn {
    min-height: 2.8rem;
    padding: 0.68rem 1rem;
    border-radius: var(--identity-radius);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.identity-shell .btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--identity-brand), #5667bc);
    border-color: var(--identity-brand);
    box-shadow: 0 7px 18px rgb(65 81 158 / 0.2);
}

.identity-shell .btn-primary:hover,
.identity-shell .btn-primary:focus,
.identity-shell .btn-primary:active,
.identity-shell .btn-primary.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--identity-brand-dark), var(--identity-brand));
    border-color: var(--identity-brand-dark);
    box-shadow: 0 9px 22px rgb(65 81 158 / 0.28);
    transform: translateY(-1px);
}

.identity-shell .btn-link {
    min-height: 2.85rem;
    padding-inline: 0.9rem;
    color: var(--identity-muted);
    box-shadow: none;
}

.identity-shell .password-addon {
    display: grid;
    width: 2.85rem;
    height: 2.85rem;
    place-items: center;
    padding: 0;
}

.identity-shell .text-danger,
.identity-shell .field-validation-error {
    color: var(--identity-danger) !important;
    font-size: 0.8rem;
}

.identity-shell [data-valmsg-for] {
    display: block;
    margin-top: 0.35rem;
}

.identity-shell [asp-validation-summary],
.identity-shell .validation-summary-errors {
    margin-bottom: 1.25rem;
    padding: 0.8rem 1rem;
    color: var(--identity-danger) !important;
    background: #fef3f2;
    border: 1px solid #fecdca;
    border-radius: var(--identity-radius);
    font-size: 0.84rem;
}

.identity-shell .validation-summary-errors ul {
    margin: 0;
    padding-left: 1.15rem;
}

.identity-shell .validation-summary-valid {
    display: none;
}

.identity-shell .alert {
    border: 0;
    border-radius: var(--identity-radius);
    font-size: 0.875rem;
}

.identity-shell .alert-info,
.identity-shell .alert-primary {
    color: var(--identity-brand-dark);
    background: var(--identity-brand-soft);
}

.identity-shell .alert-danger {
    color: var(--identity-danger);
    background: #fef3f2;
}

.identity-shell .alert-warning {
    color: var(--identity-warning);
    background: #fffaeb;
}

.identity-shell .iconcaptcha-holder {
    max-width: 100%;
    margin-inline: auto;
    color: var(--identity-text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.identity-shell .iconcaptcha-holder * {
    font-family: inherit;
}

.identity-shell .iconcaptcha-holder .iconcaptcha-modal__body-title {
    color: var(--identity-text);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
    text-transform: none;
}

.identity-shell .iconcaptcha-holder.iconcaptcha-init .iconcaptcha-modal__body-title,
.identity-shell .iconcaptcha-holder.iconcaptcha-success .iconcaptcha-modal__body-title {
    top: 18px;
    padding-right: 2.75rem;
    padding-left: 3.75rem;
}

.identity-shell .iconcaptcha-holder .iconcaptcha-modal__body-subtitle,
.identity-shell .iconcaptcha-holder .iconcaptcha-modal__header span {
    color: var(--identity-muted);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.identity-shell .iconcaptcha-holder .iconcaptcha-modal__body-info {
    color: #98a2b3;
    font-size: 0.62rem;
    font-weight: 500;
}

.identity-shell .iconcaptcha-holder .iconcaptcha-modal__body-info a,
.identity-shell .iconcaptcha-holder .iconcaptcha-modal__footer a {
    color: inherit;
}

.identity-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 1.5rem;
    color: #98a2b3;
    font-size: 0.78rem;
}

.identity-footer a {
    color: var(--identity-muted);
    font-weight: 500;
    text-decoration: none;
}

.identity-footer a:hover {
    color: var(--identity-brand);
}

/* Account management pages rendered inside the authenticated workspace. */
.identity-manage {
    max-width: 78rem;
    margin-inline: auto;
}

.identity-manage__header {
    margin-bottom: 1.5rem;
}

.identity-manage__eyebrow {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--ct-brand, var(--identity-brand));
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.identity-manage__header h1 {
    margin: 0;
    color: var(--ct-text, var(--identity-text));
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
}

.identity-manage__header p {
    margin: 0.5rem 0 0;
    color: var(--ct-text-muted, var(--identity-muted));
}

.identity-manage__body {
    display: grid;
    gap: 1rem;
}

.identity-manage__nav,
.identity-manage__content {
    background: var(--ct-surface, #fff);
    border: 1px solid var(--ct-border, var(--identity-border));
    border-radius: var(--ct-radius-card, var(--identity-radius));
    box-shadow: var(--ct-shadow-sm, 0 1px 2px rgb(16 24 40 / 0.04));
}

.identity-manage__nav {
    min-width: 0;
    padding: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-color: var(--ct-border-strong, var(--identity-border)) transparent;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.identity-manage__nav .nav {
    width: max-content;
    min-width: 100%;
    gap: 0.25rem;
}

.identity-manage__nav .nav-item {
    flex: 0 0 auto;
}

.identity-manage__nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.6rem;
    padding: 0.625rem 0.8rem;
    color: var(--ct-text-muted, var(--identity-muted));
    border-radius: 0.55rem;
    font-size: 0.85rem;
    font-weight: 550;
    line-height: 1.2;
    white-space: nowrap;
}

.identity-manage__nav .nav-link i {
    width: 1.1rem;
    color: inherit;
    font-size: 1rem;
    text-align: center;
}

.identity-manage__nav .nav-link:hover {
    color: var(--ct-text, var(--identity-text));
    background: var(--ct-surface-muted, var(--identity-surface-muted));
}

.identity-manage__nav .nav-link.active {
    color: var(--ct-brand, var(--identity-brand));
    background: var(--ct-brand-soft, var(--identity-brand-soft));
    box-shadow: inset 0 0 0 1px rgb(65 81 158 / 0.08);
}

.identity-manage__content {
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.identity-manage__content > h2:first-child,
.identity-manage__content > h4:first-child,
.identity-manage__content > .alert:first-child + h4 {
    margin-bottom: 1.5rem;
    color: var(--ct-text, var(--identity-text));
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.015em;
}

.identity-manage__content .row > [class*="col-md-"] {
    width: min(100%, 38rem);
}

.identity-manage__content .form-control {
    min-height: 2.75rem;
    border-color: var(--ct-border-strong, var(--identity-border)) !important;
    border-radius: var(--ct-radius-control, 0.5rem);
    outline: 0 !important;
    box-shadow: none;
}

.identity-manage__content .form-control:focus {
    border-color: var(--ct-focus, var(--identity-brand-light)) !important;
    box-shadow: 0 0 0 0.2rem var(--ct-action-ring, rgb(65 81 158 / 0.14));
}

.identity-manage__content .form-control:disabled,
.identity-manage__content .form-control[readonly] {
    background: var(--ct-surface-muted, var(--identity-surface-muted)) !important;
}

.identity-manage__content form .btn {
    min-height: 2.6rem;
    padding-inline: 1rem;
}

@media (max-width: 991.98px) {
    .identity-page {
        display: block;
    }

    .identity-brand-panel {
        display: none;
    }

    .identity-main {
        min-height: 100vh;
        padding: 2rem 1.25rem;
    }

    .identity-mobile-brand {
        display: inline-flex;
        width: 11rem;
        margin-bottom: 1.5rem;
        padding: 0.6rem 0.85rem;
        background: var(--identity-brand);
        border-radius: 0.65rem;
        box-shadow: 0 8px 24px rgb(65 81 158 / 0.2);
    }

    .identity-manage__nav {
        margin-inline: -0.25rem;
    }
}

@media (max-width: 575.98px) {
    .identity-main {
        justify-content: flex-start;
        padding-inline: 1rem;
    }

    .identity-card {
        padding: 1.5rem;
        border-radius: 1rem;
    }

    .identity-card .float-end {
        float: none !important;
        margin-bottom: 0.5rem;
        text-align: right;
    }

    .identity-manage__header {
        margin-bottom: 1rem;
    }

    .identity-manage__nav .nav-link {
        min-height: 2.45rem;
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .identity-shell *,
    .identity-shell *::before,
    .identity-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
