/* ============================================================
   AtlasMPS — Authentication & Launcher Pages
   50/50 split card — rich hero left, clean form right
   ============================================================ */

/* --------------- Page Wrapper --------------- */
.auth-centered {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: safe center;
    justify-content: center;
    padding: 1.5rem;
    background: transparent;
    z-index: 1;
    overflow-y: auto;
}

/* --------------- Split Card --------------- */
.auth-split-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 580px;
    background: #fff;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.06),
        0 20px 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* --------------- Left: Hero (light cream branding) --------------- */
.auth-split-hero {
    width: 50%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #F2F0EE 0%, #E8E0D4 60%, #D8D0C3 100%);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle warm gradient orbs on the cream surface */
.auth-split-hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: -120px;
    right: -100px;
    background: radial-gradient(circle, rgba(197,185,167,0.45) 0%, transparent 70%);
    animation: authOrb1 12s ease-in-out infinite alternate;
}

.auth-split-hero::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    bottom: -80px;
    left: -60px;
    background: radial-gradient(circle, rgba(160,97,61,0.10) 0%, transparent 70%);
    animation: authOrb2 10s ease-in-out infinite alternate;
}

@keyframes authOrb1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 40px) scale(1.15); }
}

@keyframes authOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, -30px) scale(1.1); }
}

.auth-split-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Logo */
.auth-split-logo {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(40,35,32,0.55);
    margin-bottom: 2.5rem;
}

/* Headline */
.auth-split-headline {
    font-size: 1.875rem;
    font-weight: 800;
    color: #282320;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.auth-split-sub {
    font-size: 0.875rem;
    color: #524A45;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Divider */
.auth-split-divider {
    width: 40px;
    height: 2px;
    background: rgba(70,60,55,0.35);
    margin: 1.75rem 0;
}

/* Feature list */
.auth-split-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-split-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0;
    font-size: 0.8125rem;
    color: #524A45;
}

.auth-split-features li i {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    color: #463C37;
    background: rgba(70,60,55,0.12);
    border-radius: 50%;
    flex-shrink: 0;
}

/* --------------- Right: Form --------------- */
.auth-split-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    background: #fff;
}

.auth-split-form-inner {
    width: 100%;
    max-width: 360px;
}

/* --------------- Form Heading --------------- */
.auth-form-heading {
    margin-bottom: 1.75rem;
}

.auth-form-heading h1,
.auth-form-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.auth-form-heading p {
    font-size: 0.8125rem;
    color: #6E6660;
    margin: 0;
    line-height: 1.5;
}

/* --------------- User Identity Card --------------- */
.auth-user-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: #F8F6F3;
    border: 1px solid #D8D0C3;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.auth-user-identity__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #D8D0C3;
}
.auth-user-identity__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #463C37, #282320);
    color: #F2F0EE;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-color: rgba(70, 60, 55, 0.25);
}
.auth-user-identity__name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2A2622;
    line-height: 1.25;
}
.auth-user-identity__email {
    font-size: 0.75rem;
    color: #6E6660;
    line-height: 1.3;
}

/* --------------- Form Elements --------------- */
.auth-form .auth-field {
    margin-bottom: 1rem;
    position: relative;
}

/* Two-column field row that stacks on phones */
.auth-field-row {
    display: grid;
    gap: 0.75rem;
}
.auth-field-row--2 { grid-template-columns: 1fr 1fr; }
.auth-field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 576px) {
    .auth-field-row--2,
    .auth-field-row--3 { grid-template-columns: 1fr; gap: 0; }
}

.auth-form .auth-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #3D3833;
    margin-bottom: 0.35rem;
}

.auth-form .auth-field .form-control {
    height: 2.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    border: 1px solid #B5AB9D;
    background: #F8F6F3;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-form .auth-field .form-control:focus {
    border-color: #463C37;
    box-shadow: 0 0 0 3px rgba(70,60,55,0.1);
    background: #fff;
    outline: none;
}

.auth-form .auth-field .form-control::placeholder {
    color: #847C70;
}

.auth-form .auth-field .auth-password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 2.15rem;
    background: none;
    border: none;
    color: #847C70;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.auth-form .auth-field .auth-password-toggle:hover {
    color: #3D3833;
}

.auth-form .auth-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.78rem;
}

.auth-form .auth-actions .form-check-label {
    color: #6E6660;
    cursor: pointer;
}

.auth-form .auth-actions .auth-forgot-link {
    color: #463C37;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.auth-form .auth-actions .auth-forgot-link:hover {
    color: #3D3833;
}

/* --------------- Submit Button --------------- */
.btn-auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    width: 100%;
    height: 2.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #F2F0EE;
    background: linear-gradient(135deg, #463C37 0%, #282320 100%);
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-auth-submit:hover:not(:disabled) {
    opacity: 0.95;
    box-shadow: 0 4px 14px rgba(40,35,32,0.35);
}

.btn-auth-submit:active:not(:disabled) {
    transform: scale(0.985);
}

.btn-auth-submit:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-auth-submit.is-loading {
    pointer-events: none;
    color: transparent;
}

.btn-auth-submit.is-loading::after {
    content: "";
    position: absolute;
    width: 1.125rem;
    height: 1.125rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.6s linear infinite;
}

@keyframes authSpin {
    to { transform: rotate(360deg); }
}

/* --------------- Footer Links --------------- */
.auth-footer-link {
    text-align: center;
    margin-top: 1.75rem;
    font-size: 0.8125rem;
    color: #847C70;
}

.auth-footer-link a {
    color: #463C37;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-link a:hover {
    color: #3D3833;
}

/* --------------- Password Checklist --------------- */
.auth-password-checklist {
    padding: 0;
    margin: 0 0 1.25rem;
    list-style: none;
}

.auth-password-checklist .checklist-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.78rem;
    color: #847C70;
    transition: color 0.2s;
}

.auth-password-checklist .checklist-row .checklist-icon {
    width: 1rem;
    text-align: center;
    font-size: 0.5rem;
    color: #B5AB9D;
    transition: color 0.2s;
}

.auth-password-checklist .checklist-row.is-valid {
    color: #3D3833;
}

.auth-password-checklist .checklist-row.is-valid .checklist-icon {
    color: #7A8C6E;
    font-size: 0.7rem;
}

.auth-password-success {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    color: #3F4D3A;
    background: #f0fdf4;
    border: 1px solid #C7D2B7;
}

.auth-password-success.visible {
    display: flex;
}

/* --------------- Inline Alerts --------------- */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
}

.auth-alert i { flex-shrink: 0; }

.auth-alert.auth-alert-success {
    color: #3F4D3A;
    background: #f0fdf4;
    border: 1px solid #C7D2B7;
}

.auth-alert.auth-alert-error {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.auth-alert.auth-alert-info {
    color: #3D3833;
    background: #F8F6F3;
    border: 1px solid #D8D0C3;
}

/* --------------- Unauthorized Page --------------- */
.auth-unauthorized {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.auth-unauthorized .auth-unauth-icon {
    font-size: 3.5rem;
    color: #B5AB9D;
    margin-bottom: 1.5rem;
}

.auth-unauthorized h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.auth-unauthorized p {
    font-size: 0.875rem;
    color: #6E6660;
    max-width: 380px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.auth-unauthorized .auth-unauth-user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #EFEBE5;
    border-radius: 2rem;
    padding: 0.5rem 1rem;
    margin-bottom: 1.75rem;
    font-size: 0.8125rem;
    color: #6E6660;
}

.auth-unauthorized .auth-unauth-user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.auth-unauthorized .auth-unauth-user strong { color: #111827; }

.auth-unauthorized .auth-unauth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-unauthorized .auth-module-list {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #D8D0C3;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.auth-unauthorized .auth-module-list h6 {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #847C70;
    margin-bottom: 0.75rem;
}

.auth-unauthorized .auth-module-list .auth-module-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    margin: 0.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3D3833;
    background: #EFEBE5;
    border-radius: 1.5rem;
    text-decoration: none;
    transition: background 0.2s;
}

.auth-unauthorized .auth-module-list .auth-module-chip:hover {
    background: #D8D0C3;
    color: #111827;
}

/* --------------- Unauthorized Card (current markup) --------------- */
.auth-unauth-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    background: #fff;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 4px 16px rgba(0,0,0,0.06),
        0 20px 60px rgba(0,0,0,0.08);
}

.auth-unauth-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #dc2626;
    font-size: 1.5rem;
}

.auth-unauth-card h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.auth-unauth-card p {
    font-size: 0.875rem;
    color: #6E6660;
    max-width: 380px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

.auth-unauth-card__user {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #EFEBE5;
    padding: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    color: #6E6660;
    max-width: 100%;
}

.auth-unauth-card__user img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.auth-unauth-card__user strong { color: #111827; }

.auth-unauth-card__modules {
    margin: 1.25rem 0;
    padding: 1rem 0;
    border-top: 1px solid #D8D0C3;
    border-bottom: 1px solid #D8D0C3;
}

.auth-unauth-card__modules h6 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #847C70;
    margin-bottom: 0.75rem;
}

.auth-unauth-card__module-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.auth-unauth-card__module {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3D3833;
    background: #EFEBE5;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    min-height: 40px;
}

.auth-unauth-card__module:hover,
.auth-unauth-card__module:focus {
    background: #D8D0C3;
    color: #111827;
}

.auth-unauth-card__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.auth-unauth-card__actions .btn {
    min-height: 44px;
}

[data-theme-mode="dark"] .auth-unauth-card { background: #111827; }
[data-theme-mode="dark"] .auth-unauth-card h2 { color: #F8F6F3; }
[data-theme-mode="dark"] .auth-unauth-card__user { background: #1f2937; color: #847C70; }
[data-theme-mode="dark"] .auth-unauth-card__user strong { color: #F8F6F3; }
[data-theme-mode="dark"] .auth-unauth-card__module { background: #1f2937; color: #B5AB9D; }
[data-theme-mode="dark"] .auth-unauth-card__module:hover { background: #3D3833; color: #F8F6F3; }

/* --------------- Launcher Page --------------- */
.launcher-wrapper {
    min-height: 100vh;
    background: #EFEBE5;
}

.launcher-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #fff;
    border-bottom: 1px solid #D8D0C3;
}

.launcher-brand {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #847C70;
}

.launcher-user-menu { position: relative; }

.launcher-user-menu .launcher-user-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    background: none;
    border: 1px solid #D8D0C3;
    border-radius: 2rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.launcher-user-menu .launcher-user-btn:hover {
    border-color: #B5AB9D;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.launcher-user-menu .launcher-user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.launcher-user-menu .launcher-user-btn span {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #3D3833;
}

.launcher-user-menu .launcher-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #D8D0C3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 100;
}

.launcher-user-menu .launcher-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.launcher-user-menu .launcher-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    color: #3D3833;
    text-decoration: none;
    transition: background 0.2s;
}

.launcher-user-menu .launcher-dropdown a:hover { background: #EFEBE5; }
.launcher-user-menu .launcher-dropdown a.text-danger { color: #dc2626; }

.launcher-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.launcher-greeting { margin-bottom: 2.5rem; }

.launcher-greeting h1 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.launcher-greeting p {
    font-size: 0.875rem;
    color: #6E6660;
    margin: 0;
}

.launcher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.launcher-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #D8D0C3;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
}

.launcher-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(70,60,55,0.1);
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}

.launcher-card .launcher-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 1rem;
    background: #EFEBE5;
    color: #463C37;
}

.launcher-card .launcher-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.launcher-card .launcher-card-desc {
    font-size: 0.8125rem;
    color: #6E6660;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.75rem;
}

.launcher-card .launcher-card-role {
    display: inline-flex;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #463C37;
    background: #EFEBE5;
    padding: 0.2rem 0.5rem;
    align-self: flex-start;
}

/* Customer-linked card variant */
.launcher-card.launcher-card--customer {
    border-color: #C7D2B7;
    border-left: 3px solid #7A8C6E;
}
.launcher-card.launcher-card--customer:hover {
    border-color: #7A8C6E;
    box-shadow: 0 4px 14px rgba(34,197,94,0.1);
}
.launcher-card-icon--customer {
    background: rgba(34,197,94,0.08) !important;
    color: #5F7058 !important;
}
.launcher-card-role--customer {
    color: #5F7058 !important;
    background: #f0fdf4 !important;
}
.launcher-card-linked-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #5F7058;
    background: #f0fdf4;
    border: 1px solid #C7D2B7;
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    margin-top: 0.35rem;
    align-self: flex-start;
}

/* Dark theme customer card */
[data-theme-mode="dark"] .launcher-card.launcher-card--customer { background: #111827; border-color: #3F4D3A; border-left-color: #7A8C6E; }
[data-theme-mode="dark"] .launcher-card.launcher-card--customer:hover { border-color: #7A8C6E; }
[data-theme-mode="dark"] .launcher-card-linked-tag { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.2); color: #4ade80; }

.launcher-loading {
    text-align: center;
    padding: 4rem 1rem;
    color: #847C70;
}

.launcher-loading .spinner-border {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
}

/* --------------- Responsive --------------- */

/* Tablets — stack to column, hero stays visible */
@media (max-width: 767.98px) {
    .auth-split-card {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }
    .auth-split-hero {
        width: 100%;
        padding: 1.5rem 1.5rem;
        min-height: auto;
    }
    .auth-split-logo { margin-bottom: 1rem; }
    .auth-split-headline { font-size: 1.25rem; margin-bottom: 0.4rem; }
    .auth-split-sub { font-size: 0.8rem; }
    .auth-split-divider { margin: 1rem 0; }
    .auth-split-features li { padding: 0.2rem 0; font-size: 0.78rem; }
    .auth-split-form { padding: 1.75rem 1.5rem; }
    .auth-split-headline, .auth-split-sub { word-break: break-word; }
}

/* Phones — hero becomes compact branded strip, form is the star */
@media (max-width: 576px) {
    .auth-centered { padding: 0.5rem; }
    .auth-split-card { max-width: 100%; box-shadow: 0 1px 8px rgba(0,0,0,0.08); }

    /* Hero: collapse to compact branded banner */
    .auth-split-hero {
        padding: 1.25rem 1.25rem 1rem;
        text-align: center;
    }
    .auth-split-hero::before,
    .auth-split-hero::after { display: none; }
    .auth-split-hero img { max-width: 160px !important; }
    .auth-split-logo { margin-bottom: 0.5rem; font-size: 0.75rem; }
    .auth-split-headline { font-size: 1.1rem; margin-bottom: 0.25rem; }
    .auth-split-sub { font-size: 0.75rem; margin-bottom: 0; }
    .auth-split-divider { display: none; }
    .auth-split-features {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.15rem 1rem;
        margin-top: 0.6rem;
    }
    .auth-split-features li {
        font-size: 0.68rem;
        padding: 0.15rem 0;
        gap: 0.35rem;
    }
    .auth-split-features li i {
        width: 14px; height: 14px; font-size: 0.45rem;
    }

    /* Form: prominent and spacious */
    .auth-split-form { padding: 1.5rem 1.25rem; }
    .auth-form-heading { margin-bottom: 1.25rem; }
    .auth-form-heading h1, .auth-form-heading h2 { font-size: 1.25rem; }
    .auth-form-heading p { font-size: 0.78rem; }
    .auth-form .auth-field { margin-bottom: 0.85rem; }
    .auth-form .auth-field .form-control { font-size: max(16px, 1em); height: 2.875rem; }
    .auth-form .auth-field label { font-size: 0.8rem; }
    .btn-auth-submit { height: 2.875rem; font-size: 0.9rem; }
    .auth-footer-link { margin-top: 1.25rem; font-size: 0.78rem; }
    .auth-password-toggle { min-width: 44px; min-height: 44px; }
    .auth-password-checklist .checklist-row { padding: 0.3rem 0; }
    .auth-password-checklist .checklist-row span { font-size: 0.8rem; }
    .auth-password-success { font-size: 0.78rem; }

    /* Unauthorized */
    .auth-unauth-card { padding: 2rem 1.5rem; }
    .auth-unauth-card__icon { width: 52px; height: 52px; font-size: 1.25rem; }
    .auth-unauth-card h2 { font-size: 1.25rem; }
    .auth-unauth-card p { font-size: 0.82rem; }
    .auth-unauth-card__user { word-break: break-word; }
    .auth-unauth-card__actions { flex-direction: column; }
    .auth-unauth-card__actions .btn { width: 100%; }
}

/* Small phones — even tighter hero, form still dominates */
@media (max-width: 375px) {
    .auth-centered { padding: 0.25rem; }
    .auth-split-hero { padding: 1rem; }
    .auth-split-headline { font-size: 1rem; }
    .auth-split-form { padding: 1.25rem 1rem; }
    .auth-form-heading h1, .auth-form-heading h2 { font-size: 1.1rem; }
    .auth-split-form-inner { max-width: 100%; }
    .btn-auth-submit { font-size: 0.85rem; }

    /* Unauthorized */
    .auth-unauth-card { padding: 1.5rem 1rem; }
    .auth-unauth-card__icon { width: 44px; height: 44px; font-size: 1.1rem; }
    .auth-unauth-card h2 { font-size: 1.1rem; }
}

@media (max-width: 991.98px) {
    .launcher-topbar { padding: 0.75rem 1rem; }
    .launcher-body { padding: 2rem 1rem; }
    .launcher-greeting h1 { font-size: 1.375rem; }
    .launcher-grid { grid-template-columns: 1fr; }
}

/* --------------- Dark Theme --------------- */
[data-theme-mode="dark"] .auth-centered { background: #0a0a0a; }
[data-theme-mode="dark"] .auth-split-card { background: #111827; box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
[data-theme-mode="dark"] .auth-split-form { background: #111827; }

[data-theme-mode="dark"] .auth-form-heading h1,
[data-theme-mode="dark"] .auth-form-heading h2 { color: #F8F6F3; }
[data-theme-mode="dark"] .auth-form .auth-field label { color: #847C70; }

[data-theme-mode="dark"] .auth-form .auth-field .form-control {
    background: #1f2937;
    border-color: #3D3833;
    color: #F8F6F3;
}

[data-theme-mode="dark"] .auth-form .auth-field .form-control:focus {
    background: #1f2937;
    border-color: #463C37;
}

[data-theme-mode="dark"] .launcher-wrapper { background: #0a0a0a; }
[data-theme-mode="dark"] .launcher-topbar { background: #111827; border-color: #1f2937; }
[data-theme-mode="dark"] .launcher-greeting h1 { color: #F8F6F3; }
[data-theme-mode="dark"] .launcher-card { background: #111827; border-color: #1f2937; }
[data-theme-mode="dark"] .launcher-card:hover { border-color: #463C37; }
[data-theme-mode="dark"] .launcher-card .launcher-card-name { color: #F8F6F3; }
[data-theme-mode="dark"] .launcher-card .launcher-card-icon { background: rgba(70,60,55,0.1); }

[data-theme-mode="dark"] .auth-unauthorized h2 { color: #F8F6F3; }
[data-theme-mode="dark"] .auth-unauthorized .auth-unauth-user { background: #1f2937; }
[data-theme-mode="dark"] .auth-unauthorized .auth-unauth-user strong { color: #F8F6F3; }

/* Legacy compat */
.authentication .card.custom-card {
    box-shadow: 0 1rem 2.1rem rgba(0,0,0,0.05);
    margin-block-end: 6rem;
}
.authentication { min-height: 100vh; }

/* ============================================================
   /customers/sign-up/ — Module selector (compact tiles)
   Single-line rows: logo + name + CTA. No descriptions.
   ============================================================ */
.signup-module-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-block: 8px 14px;
}
.signup-module {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    min-height: 52px;
    border: 1px solid #D8D0C3;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease, background .15s ease;
}
.signup-module--available {
    cursor: pointer;
    border-color: #B5AB9D;
}
.signup-module--available:hover {
    border-color: #463C37;
    background: #F8F6F3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(70,60,55,0.10);
}
.signup-module--available:hover .signup-module__cta svg { transform: translateX(3px); }
.signup-module--soon {
    opacity: 0.5;
    cursor: default;
    background: transparent;
    border-color: #eef2f7;
    border-style: dashed;
}
.signup-module--soon .signup-module__logo img,
.signup-module--soon .signup-module__logo-fallback {
    filter: grayscale(1);
}

.signup-module__logo {
    flex: 0 0 84px;
    width: 84px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.signup-module__logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.signup-module__logo-fallback {
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: -0.01em;
    line-height: 1;
}

.signup-module__name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1A1715;
    letter-spacing: -0.005em;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.signup-module__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #463C37;
    letter-spacing: 0.01em;
    flex: 0 0 auto;
    white-space: nowrap;
}
.signup-module__cta svg { transition: transform .2s ease; }
.signup-module__cta--soon {
    color: #847C70;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.signup-module-help {
    font-size: 0.8rem;
    color: #6E6660;
    text-align: center;
    margin-block: 6px 0;
}
.signup-module-help a { color: #463C37; font-weight: 600; text-decoration: none; }
.signup-module-help a:hover { text-decoration: underline; }

/* Dark mode */
[data-theme-mode="dark"] .signup-module { background: #1A1715; border-color: #2A2622; }
[data-theme-mode="dark"] .signup-module--available { border-color: #3D3833; }
[data-theme-mode="dark"] .signup-module--available:hover { border-color: #C5B9A7; background: #0b1424; box-shadow: 0 4px 12px rgba(197,185,167,0.14); }
[data-theme-mode="dark"] .signup-module--soon { border-color: #2A2622; background: transparent; }
[data-theme-mode="dark"] .signup-module__name { color: #EFEBE5; }
[data-theme-mode="dark"] .signup-module__cta { color: #C5B9A7; }
[data-theme-mode="dark"] .signup-module__cta--soon { color: #6E6660; }
[data-theme-mode="dark"] .signup-module-help { color: #847C70; }
[data-theme-mode="dark"] .signup-module-help a { color: #C5B9A7; }
