.cc-auth-body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: var(--cc-background);
    color: var(--cc-text);
}

.cc-auth-header {
    flex: 0 0 auto;
    background: #0f1a33;
    color: #fff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.cc-auth-header__inner {
    width: min(1180px, calc(100% - 2rem));
    min-height: 4.25rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cc-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.cc-auth-brand__mark {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    background: var(--cc-primary);
    color: #fff;
    font-weight: 800;
}

.cc-auth-brand strong,
.cc-auth-brand small {
    display: block;
}

.cc-auth-brand strong { font-size: 1rem; line-height: 1.15; }
.cc-auth-brand small { margin-top: 0.15rem; color: #cbd5e1; font-size: 0.75rem; }

.cc-auth-theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.cc-auth-theme-toggle:hover,
.cc-auth-theme-toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.cc-auth-main {
    flex: 1 0 auto;
    padding: clamp(1.5rem, 4vw, 4rem) 1rem;
}

.cc-auth-main > [data-cc-flash-container] {
    width: min(1040px, 100%);
    padding-left: 0;
    padding-right: 0;
}

.cc-auth-shell {
    width: min(1040px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.85fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.cc-auth-intro { max-width: 34rem; }
.cc-auth-eyebrow { color: var(--cc-primary); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.cc-auth-intro h1 { margin: 0.75rem 0 1rem; font-size: clamp(2rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.04em; }
.cc-auth-intro > p { color: var(--cc-text-muted); font-size: 1.05rem; line-height: 1.7; }

.cc-auth-feature-list { margin-top: 2rem; display: grid; gap: 0.85rem; }
.cc-auth-feature-list > div { display: flex; align-items: center; gap: 0.75rem; font-weight: 650; }
.cc-auth-feature-list i { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 0.65rem; color: var(--cc-primary); background: var(--cc-primary-soft); }

.cc-auth-card {
    border: 1px solid var(--cc-border);
    border-radius: 1rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--cc-surface);
    box-shadow: var(--cc-shadow-md);
}

.cc-auth-card__header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.cc-auth-card__header h2 { margin: 0; font-size: 1.55rem; }
.cc-auth-card__header p { margin: 0.3rem 0 0; color: var(--cc-text-muted); }
.cc-auth-secure { align-self: flex-start; color: var(--cc-success); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.cc-auth-tabs { gap: 0.35rem; padding: 0.3rem; margin-bottom: 1.5rem; border-radius: 0.75rem; background: var(--cc-surface-muted); }
.cc-auth-tabs .nav-item { flex: 1; }
.cc-auth-tabs .nav-link { width: 100%; color: var(--cc-text-muted); font-weight: 700; }
.cc-auth-tabs .nav-link.active { background: var(--cc-surface); color: var(--cc-primary); box-shadow: var(--cc-shadow-sm); }

.cc-password-control { position: relative; margin-top: 0.5rem; }
.cc-password-control .form-control { padding-right: 3rem; }
.cc-password-toggle { position: absolute; top: 50%; right: 0.45rem; width: 2.25rem; height: 2.25rem; transform: translateY(-50%); border: 0; border-radius: 0.5rem; background: transparent; color: var(--cc-text-muted); }
.cc-password-toggle:hover { background: var(--cc-surface-muted); color: var(--cc-text); }

.cc-auth-link { font-size: 0.85rem; font-weight: 650; text-decoration: none; }
.cc-auth-submit { min-height: 2.85rem; display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem; font-weight: 700; }
.cc-auth-method-note { color: var(--cc-text-muted); line-height: 1.6; }

.cc-auth-footer {
    flex: 0 0 auto;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    border-top: 1px solid var(--cc-border);
    background: var(--cc-surface);
    color: var(--cc-text-muted);
    font-size: 0.78rem;
}

@media (max-width: 820px) {
    .cc-auth-shell { grid-template-columns: 1fr; }
    .cc-auth-intro { max-width: none; text-align: center; }
    .cc-auth-feature-list { width: fit-content; margin-left: auto; margin-right: auto; text-align: left; }
}

@media (max-width: 480px) {
    .cc-auth-main { padding: 1rem 0.75rem 1.5rem; }
    .cc-auth-header__inner { width: calc(100% - 1.5rem); }
    .cc-auth-card { padding: 1rem; }
    .cc-auth-card__header { display: block; }
    .cc-auth-secure { display: inline-block; margin-top: 0.75rem; }
}
