:root {
    --cb-primary: #2457ff;
    --cb-primary-dark: #1234b5;
    --cb-accent: #00c3a6;
    --cb-accent-soft: rgba(0, 195, 166, 0.12);
    --cb-border: rgba(99, 122, 170, 0.2);
    --cb-border-strong: rgba(85, 112, 170, 0.34);
    --cb-text: #0d1830;
    --cb-text-soft: #60708e;
    --cb-panel: #0d1732;
    --cb-panel-soft: #13224a;
    --cb-surface: #f9fbff;
    --auth-shell-max: 1180px;
    --auth-shell-gutter: clamp(1rem, 2vw, 1.5rem);
    --auth-panel-pad: clamp(1.2rem, 2.4vw, 2rem);
}

body.app-enterprise {
    background: #ffffff !important;
}

.page-body {
    position: relative;
    min-height: calc(100vh - 96px);
    background:
        radial-gradient(circle at top left, rgba(36, 87, 255, 0.14), transparent 24rem),
        radial-gradient(circle at top right, rgba(0, 195, 166, 0.1), transparent 28rem),
        linear-gradient(180deg, #f6f8ff 0%, #f9fbff 38%, #f3f6fc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2.4rem, 5vw, 4rem) var(--auth-shell-gutter);
    color: var(--cb-text);
    overflow-x: hidden;
}

.page-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 170, 216, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 170, 216, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    opacity: 0.5;
    z-index: 0;
}

.auth-shell {
    max-width: var(--auth-shell-max);
    width: min(100%, var(--auth-shell-max));
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--cb-border);
    box-shadow: 0 44px 110px -52px rgba(9, 18, 42, 0.28);
    backdrop-filter: blur(24px);
    display: flex;
    overflow: hidden;
    border-radius: 32px;
    position: relative;
    z-index: 1;
}

.auth-shell--login,
.auth-shell--register {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
}

.auth-shell--login .auth-hero,
.auth-shell--login .auth-pane,
.auth-shell--register .auth-hero,
.auth-shell--register .auth-pane {
    min-width: 0;
}

.auth-shell--forgot {
    max-width: 980px;
}

.auth-hero {
    flex: 1 1 50%;
    background: linear-gradient(160deg, #14316e 0%, #1d4ed8 46%, #2457ff 100%);
    padding: clamp(2rem, 3vw, 3.4rem) clamp(1.5rem, 3vw, 3rem);
    color: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2.5rem;
}

.auth-hero::before {
    content: "";
    position: absolute;
    inset: 8% -14% auto 30%;
    height: 260px;
    border-radius: 120px;
    background: radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0));
    opacity: 0.48;
    transform: rotate(-16deg);
}

.auth-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% 5% -18%;
    height: 240px;
    border-radius: 160px;
    background: radial-gradient(circle, rgba(0, 195, 166, 0.24), rgba(0, 195, 166, 0));
    opacity: 0.46;
}

.auth-hero--login {
    background:
        radial-gradient(circle at top left, rgba(36, 87, 255, 0.18), transparent 18rem),
        linear-gradient(180deg, #091125 0%, #0d1732 100%);
    padding: clamp(1.6rem, 2.4vw, 2.25rem) clamp(1.4rem, 2.4vw, 2.4rem) clamp(1.6rem, 2.4vw, 2.4rem);
    gap: 1.8rem;
}

.auth-hero--register {
    background: linear-gradient(135deg, #1d4ed8, #2563eb 40%, #3b82f6);
}

.auth-hero--premium {
    background:
        radial-gradient(circle at 16% 18%, rgba(104, 148, 255, 0.18), transparent 18rem),
        radial-gradient(circle at 82% 14%, rgba(71, 210, 193, 0.1), transparent 16rem),
        linear-gradient(160deg, #08111f 0%, #0d1b31 54%, #13243e 100%);
    padding: clamp(1.7rem, 2.4vw, 2.4rem) clamp(1.5rem, 2.4vw, 2.4rem) clamp(1.6rem, 2.4vw, 2.3rem);
    gap: 1.9rem;
}

.auth-hero--premium::before {
    inset: auto auto 10% -4%;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(71, 126, 255, 0.12), rgba(71, 126, 255, 0));
    opacity: 1;
    transform: none;
}

.auth-hero--premium::after {
    inset: -10% -8% auto auto;
    width: 18rem;
    height: 18rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(118, 255, 228, 0.1), rgba(118, 255, 228, 0));
    opacity: 1;
}

.auth-hero--register::before {
    inset: 10% -24% auto 20%;
    height: 320px;
    border-radius: 140px;
}

.auth-hero--register::after {
    inset: auto -18% 6% -24%;
    height: 220px;
}

.auth-hero > * {
    position: relative;
    z-index: 1;
}

.hero-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.hero-brand-logo {
    width: auto;
    height: 40px;
    max-width: min(220px, 100%);
    filter: drop-shadow(0 10px 24px rgba(10, 18, 37, 0.2));
}

.login-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hero-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(234, 241, 255, 0.9);
    font-size: 0.84rem;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.hero-site-link:hover,
.hero-site-link:focus {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}

.auth-side-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.auth-side-content {
    display: grid;
    gap: 1.5rem;
}

.auth-side-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(159, 212, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(233, 243, 255, 0.8);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-side-intro {
    display: grid;
    gap: 0.95rem;
    max-width: 32rem;
    animation: none;
}

.auth-side-title {
    margin: 0;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.45rem, 4.8vw, 3.55rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.03em;
    max-width: 12ch;
}

.auth-side-copy {
    margin: 0;
    max-width: 33rem;
    color: rgba(224, 235, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

.auth-side-quote-card {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem 1.15rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    animation: none;
}

.auth-side-quote-meta {
    color: rgba(217, 228, 255, 0.62);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-side-quote-figure {
    position: relative;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding-left: 1.45rem;
}

.auth-side-quote-mark {
    position: absolute;
    left: 0;
    top: -0.12rem;
    color: rgba(149, 214, 255, 0.46);
    font-family: "Cormorant Garamond", serif;
    font-size: 3rem;
    line-height: 0.9;
}

.auth-side-quote-text {
    margin: 0;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.42rem, 2.35vw, 1.78rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.auth-side-quote-support {
    color: rgba(223, 232, 255, 0.66);
    font-size: 0.88rem;
    line-height: 1.6;
}

.auth-side-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.auth-side-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(234, 241, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
}

.login-hero-copy {
    display: grid;
    gap: 0.95rem;
    max-width: 34rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(130, 255, 240, 0.12);
    border: 1px solid rgba(130, 255, 240, 0.18);
    color: #9efbf0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-hero--register .hero-brand-logo {
    height: 46px;
}

.hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4.8vw, 3.35rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: -0.025em;
    margin: 0;
    color: #ffffff;
}

.hero-title--divider {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1.5rem;
}

.hero-text {
    color: rgba(255, 255, 255, 0.82);
    max-width: 34rem;
    line-height: 1.65;
    font-size: 0.98rem;
}

.login-workspace {
    display: grid;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 28px 70px -52px rgba(9, 18, 42, 0.9);
    backdrop-filter: blur(18px);
}

.workspace-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.workspace-dots {
    display: inline-flex;
    gap: 0.35rem;
}

.workspace-dots span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.workspace-dots span:nth-child(1) {
    background: rgba(255, 255, 255, 0.5);
}

.workspace-dots span:nth-child(2) {
    background: rgba(130, 255, 240, 0.68);
}

.workspace-dots span:nth-child(3) {
    background: rgba(255, 178, 90, 0.82);
}

.workspace-label {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(234, 241, 255, 0.74);
}

.workspace-nav {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.workspace-nav span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    color: rgba(223, 232, 255, 0.76);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
    font-weight: 600;
}

.workspace-nav .is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 0.9rem;
}

.workspace-card {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-width: 0;
}

.workspace-card p,
.workspace-card small,
.workspace-card span,
.workspace-list li span {
    color: rgba(223, 232, 255, 0.72);
}

.workspace-card strong,
.workspace-list li strong {
    color: #ffffff;
}

.workspace-card p {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.workspace-card--primary {
    grid-column: 1 / -1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
}

.workspace-card--primary strong {
    font-size: 1.05rem;
    line-height: 1.45;
}

.workspace-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.workspace-stat-row div {
    display: grid;
    gap: 0.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.workspace-stat-row span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-stat-row strong {
    font-size: 1.1rem;
}

.workspace-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.7rem;
}

.workspace-list li {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
}

.workspace-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.workspace-list li strong {
    white-space: nowrap;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-card--metric strong {
    font-size: 1.2rem;
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-proof-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(234, 241, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 600;
}

.hero-list,
.hero-points,
.hero-highlights {
    list-style: none;
    padding: 0;
    margin: 1.7rem 0 0;
    display: grid;
    gap: 0.8rem;
}

.hero-list li,
.hero-points li,
.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-list .check-icon,
.hero-points .check-icon,
.hero-highlights .check-icon {
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-support {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 1.2rem 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    display: grid;
    gap: 0.4rem;
    box-shadow: 0 30px 60px -46px rgba(15, 23, 42, 0.75);
    font-size: 0.9rem;
}

.hero-support a {
    color: #ffffff;
    font-weight: 600;
}

.hero-preview {
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 28px 55px -44px rgba(15, 23, 42, 0.8);
    max-width: 320px;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
}

.preview-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
}

.preview-body {
    display: grid;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-row strong {
    font-weight: 600;
    color: #ffffff;
}

.preview-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: rgba(45, 212, 191, 0.95);
}

.auth-pane {
    flex: 1 1 50%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.auth-pane--forgot {
    padding: clamp(2rem, 3vw, 3.6rem) clamp(1.5rem, 2.6vw, 3.25rem);
}

.auth-pane--login,
.auth-pane--register {
    padding: var(--auth-panel-pad);
    justify-content: center;
  }

.form-header {
    display: grid;
    gap: 0.45rem;
}

.form-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cb-primary);
}

.form-header h1 {
    font-size: clamp(1.95rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--cb-text);
    margin: 0;
    letter-spacing: -0.03em;
}

.form-header p {
    margin: 0;
    color: var(--cb-text-soft);
    line-height: 1.5;
}

.auth-form-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.form-floating .form-control {
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid var(--cb-border);
    background-color: rgba(250, 252, 255, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-floating .form-control:focus {
    border-color: rgba(36, 87, 255, 0.68);
    background-color: #ffffff;
    box-shadow: 0 0 0 0.32rem rgba(36, 87, 255, 0.12);
}

.form-floating label {
    color: #70809b;
    padding-inline: 1rem;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #50607d;
}

.remember-check input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.35rem;
}

.forgot-link {
    color: var(--cb-primary);
    font-weight: 600;
    text-decoration: none;
}

.btn-auth-primary {
    background: linear-gradient(135deg, var(--cb-primary), var(--cb-primary-dark));
    border: none;
    border-radius: 18px;
    min-height: 54px;
    padding: 0.95rem 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 22px 46px -24px rgba(36, 87, 255, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color:#fff;
}

.btn-auth-primary:hover,
.btn-auth-primary:focus {
    background: linear-gradient(135deg, #1c49ef, #102f9f);
    transform: translateY(-1px);
    box-shadow: 0 26px 54px -26px rgba(18, 52, 181, 0.48);
    color:#fff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.btn-auth-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    border: 1px solid #d8e4ff;
    background: #ffffff;
    color: #1e293b;
    font-weight: 600;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-auth-tertiary:hover,
.btn-auth-tertiary:focus {
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 18px 34px -22px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.btn-auth-tertiary i {
    font-size: 1.05rem;
    color: #ef4444;
}

.form-footer {
    font-size: 0.92rem;
    color: var(--cb-text-soft);
}

.auth-meta,
.auth-meta a {
    color: var(--cb-primary);
    font-weight: 600;
}

.alert {
    border-radius: 16px;
    border-color: rgba(56, 189, 248, 0.26);
}

.terms-box {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    background: rgba(226, 232, 240, 0.35);
    padding: 1.1rem 1.25rem;
    font-size: 0.87rem;
    color: #475569;
}

.terms-box a {
    color: var(--cb-primary);
    font-weight: 600;
}

footer.footer {
    display: none;
}

.page-body {
    margin-top: 0 !important;
    padding-top: 64px !important;
}

.login-pane-stack,
.auth-pane-stack {
    width: 100%;
    display: grid;
    gap: 1rem;
}

.login-panel,
.auth-form-panel {
    width: 100%;
    display: grid;
    gap: 1.5rem;
    padding: var(--auth-panel-pad);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
    overflow: hidden;
}

.login-panel::before,
.auth-form-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--cb-primary), rgba(36, 87, 255, 0.45), rgba(0, 195, 166, 0.8));
}

.auth-form-panel--register .form-footer {
    padding-top: 0.1rem;
}

@keyframes authPanelReveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-context-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(36, 87, 255, 0.045), rgba(0, 195, 166, 0.035));
    border: 1px solid rgba(97, 121, 170, 0.14);
}

.login-context-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(36, 87, 255, 0.14), rgba(0, 195, 166, 0.1));
    color: var(--cb-primary);
    font-size: 1.1rem;
}

.login-context-card strong {
    display: block;
    color: var(--cb-text);
    font-size: 0.95rem;
    margin-bottom: 0.22rem;
}

.login-context-card p {
    color: var(--cb-text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.login-trust-card {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 0.95rem 1rem;
    border-radius: 18px;
    background: rgba(246, 249, 255, 0.88);
    border: 1px solid rgba(97, 121, 170, 0.14);
}

.login-trust-card i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(36, 87, 255, 0.08);
    color: var(--cb-primary);
    font-size: 0.95rem;
}

.login-trust-card strong {
    color: var(--cb-text);
    font-size: 0.9rem;
}

.login-trust-card span {
    color: var(--cb-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.login-support-card {
    display: grid;
    gap: 0.8rem;
    padding: 1.05rem 1.1rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(9, 18, 42, 0.02), rgba(36, 87, 255, 0.045));
    border: 1px solid rgba(97, 121, 170, 0.16);
}

.login-support-card strong {
    display: block;
    color: var(--cb-text);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.login-support-card p {
    color: var(--cb-text-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1rem;
}

.login-support-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(97, 121, 170, 0.14);
    color: var(--cb-primary);
    font-weight: 700;
    font-size: 0.88rem;
}

.form-footer--login {
    padding-top: 0.2rem;
}

@media (max-width: 1199.98px) {
    .auth-shell {
        max-width: 1000px;
    }

    .auth-shell--login,
    .auth-shell--register {
        max-width: 1080px;
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
    }

    .auth-side-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .page-body {
        padding-top: 3.6rem;
        padding-bottom: 3.6rem;
    }
    .auth-shell {
        flex-direction: column;
    }
    .auth-shell--login,
    .auth-shell--register {
        display: flex;
        max-width: 760px;
    }
    .auth-hero {
        padding: 3rem 2.6rem;
    }
    .auth-hero--premium {
        padding: 2.2rem 2.2rem 1.9rem;
    }
    .auth-pane {
        padding: 3rem 2.6rem 3.4rem;
    }
    .auth-pane--login,
    .auth-pane--register {
        padding: 1rem;
    }
    .workspace-grid {
        grid-template-columns: 1fr;
    }
    .login-pane-stack,
    .auth-pane-stack {
        max-width: 100%;
    }

    .auth-side-title {
        max-width: 12.5ch;
    }
}

@media (max-width: 767.98px) {
    body.app-enterprise.app-no-sidebar .page-wrapper .page-body-wrapper {
        padding: 0 !important;
    }

    .auth-hero.auth-hero--premium {
        display: none;
    }

    .page-body {
        align-items: flex-start;
        padding: 0 !important;
    }
    .auth-shell {
        margin: 0;
    }
    .auth-hero {
        padding: 2.8rem 2.1rem 2.4rem;
    }
    .auth-hero--premium {
        padding: 1.8rem 1.6rem 1.55rem;
        gap: 1.1rem;
    }
    .auth-shell--login,
    .auth-shell--register {
        max-width: 100%;
        border-radius: 0;
    }
    .auth-pane {
        padding: 2.6rem 2rem 3rem;
    }
    .hero-list li,
    .hero-points li,
    .hero-highlights li {
        font-size: 0.9rem;
    }
    .login-hero-top,
    .auth-side-header {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    .login-hero-top .hero-brand {
        min-width: 0;
    }
    .login-hero-top .hero-site-link {
        margin-left: auto;
        flex-shrink: 0;
    }
    .login-hero-copy {
        display: none;
    }
    .login-workspace {
        display: none;
    }
    .auth-side-title {
        max-width: 13ch;
        font-size: clamp(2.1rem, 9vw, 2.85rem);
    }
    .auth-side-copy {
        font-size: 0.92rem;
        line-height: 1.6;
    }
    .auth-side-quote-card {
        padding: 1.05rem 1rem 1rem;
        border-radius: 22px;
    }
    .auth-side-quote-text {
        font-size: 1.42rem;
    }
    .auth-side-highlights {
        grid-template-columns: 1fr;
    }
    .auth-side-preview {
        display: none;
    }
    .auth-pane--login,
    .auth-pane--register {
        padding: 0;
    }
    .hero-proof-row span {
        font-size: 0.78rem;
    }
    .login-panel,
    .auth-form-panel {
        padding: 1.35rem;
        border-radius: 24px;
    }
    .login-trust-grid {
        grid-template-columns: 1fr;
        display: grid;
    }
    .workspace-stat-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .page-body {
        padding: 2.7rem 0 2.25rem;
    }
    .auth-hero {
        padding: 2.4rem 1.5rem 2.2rem;
    }
    .auth-pane {
        padding: 2.4rem 1.6rem 2.7rem;
    }
    .hero-brand-logo {
        height: 36px;
        max-width: 188px;
    }
    .hero-site-link {
        min-height: 36px;
        padding: 0.45rem 0.75rem;
        font-size: 0.78rem;
    }
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.2rem);
    }
    .auth-side-title {
        font-size: clamp(2rem, 8vw, 2.55rem);
    }
    .auth-side-label {
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }
    .form-floating label {
        font-size: 0.85rem;
    }
    .auth-form-wrapper .form-check-label,
    .auth-form-wrapper .auth-meta,
    .auth-form-wrapper button {
        font-size: 0.95rem;
    }
    .form-footer {
        text-align: center;
    }
    .login-panel,
    .auth-form-panel {
        padding: 1.2rem;
    }
    .login-context-card {
        grid-template-columns: 1fr;
    }
    .login-context-icon {
        width: 42px;
        height: 42px;
    }
    .form-actions,
    .login-support-links {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 420px) {
    .page-body {
        padding: 2.3rem 0 2rem;
    }
    .auth-shell {
        border-radius: 0px;
        box-shadow: none;
    }
    .auth-hero {
        padding: 2.2rem 1.25rem 2rem;
    }
    .auth-pane {
        padding: 2.1rem 1.3rem 2.5rem;
    }
    .btn-auth-primary {
        padding: 0.8rem 1.1rem;
    }
    .login-panel,
    .auth-form-panel {
        padding: 1rem;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-side-intro,
    .auth-side-quote-card,
    .auth-side-highlight,
    .auth-side-preview {
        animation: none;
    }

    .hero-site-link,
    .btn-auth-primary,
    .btn-auth-tertiary {
        transition: none;
    }
}
