/* Shared auth page UI styles (login, reset, password pages) */

:root {
    --auth-ink: #2f1a2a;
    --auth-muted: #654054;
    --auth-accent: #8b0d4d;
    --auth-accent-hover: #6f0a3f;
    --auth-top-link: #6f0a3f;
    --auth-accent-soft: #f7eaf1;
    --auth-accent-soft-2: #e7c8d8;
    --auth-danger: #b42318;
    --auth-border: #dfbfd0;
    --auth-ring: rgba(139, 13, 77, 0.22);
    --auth-card-bg: rgba(255, 255, 255, 0.97);
    --auth-shadow-soft: 0 1px 2px rgba(5, 25, 20, 0.04),
        0 4px 12px rgba(139, 13, 77, 0.06),
        0 20px 48px -8px rgba(139, 13, 77, 0.13);
    --auth-shadow-strong: 0 1px 3px rgba(5, 25, 20, 0.06),
        0 8px 20px rgba(139, 13, 77, 0.1),
        0 28px 60px -6px rgba(139, 13, 77, 0.2);
    --auth-shadow-float: 0 32px 64px -12px rgba(139, 13, 77, 0.18),
        0 0 0 1px rgba(139, 13, 77, 0.04);
    --auth-ease-out: cubic-bezier(0.22, 0.68, 0, 1);
    --auth-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --theme-toggle-bg: rgba(255, 255, 255, 0.92);
    --theme-toggle-border: #d2a9bf;
    --theme-toggle-text: #5e2744;
    --theme-toggle-hover: #f8eaf2;
}

[data-theme="dark"] {
    --auth-ink: #f7ecf2;
    --auth-muted: #e6cdd9;
    --auth-accent: #b26b93;
    --auth-accent-hover: #d39ab7;
    --auth-top-link: #f2d7e4;
    --auth-accent-soft: rgba(178, 107, 147, 0.16);
    --auth-accent-soft-2: rgba(178, 107, 147, 0.24);
    --auth-border: #5f3249;
    --auth-ring: rgba(178, 107, 147, 0.32);
    --auth-card-bg: rgba(27, 12, 21, 0.92);
    --auth-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3),
        0 8px 24px rgba(0, 4, 15, 0.4),
        0 24px 48px -8px rgba(0, 4, 15, 0.5);
    --auth-shadow-strong: 0 2px 4px rgba(0, 0, 0, 0.35),
        0 12px 32px rgba(0, 4, 15, 0.5),
        0 32px 64px -6px rgba(0, 4, 15, 0.6);
    --auth-shadow-float: 0 40px 80px -16px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(178, 107, 147, 0.08);
    --theme-toggle-bg: rgba(6, 16, 15, 0.92);
    --theme-toggle-border: #8a4a68;
    --theme-toggle-text: #f1d8e5;
    --theme-toggle-hover: rgba(178, 107, 147, 0.18);
}

[x-cloak] {
    display: none !important;
}

.auth-page {
    position: relative;
    isolation: isolate;
    background-color: #edf1f7;
    background-image:
        radial-gradient(ellipse 80% 50% at 70% -5%, rgba(139, 13, 77, 0.12), transparent),
        radial-gradient(ellipse 60% 40% at 15% 8%, rgba(178, 107, 147, 0.09), transparent),
        radial-gradient(ellipse 50% 60% at 50% 100%, rgba(139, 13, 77, 0.06), transparent),
        linear-gradient(180deg, #fbf8fa 0%, #f8edf3 50%, #f4e5ee 100%);
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0.22;
    background-image: radial-gradient(rgba(5, 25, 20, 0.06) 0.5px, transparent 0.5px);
    background-size: 6px 6px;
}

.auth-topbar {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;
    background: rgba(248, 254, 252, 0.82);
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.auth-nav-link {
    color: var(--auth-top-link);
}

.auth-nav-link:hover {
    background: var(--auth-accent-soft);
    color: var(--auth-top-link);
}

.auth-nav-link-primary {
    background: var(--auth-accent-soft);
    color: var(--auth-top-link);
}

.auth-topbar>nav {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════
   Theme Toggle — Icon Button
   ═══════════════════════════════════════ */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.7rem;
    border: 1px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    color: var(--theme-toggle-text);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    transition: background-color 0.3s var(--auth-ease-out),
        border-color 0.3s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring),
        box-shadow 0.3s var(--auth-ease-out);
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    border: 1px solid var(--theme-toggle-border);
    background: var(--theme-toggle-bg);
    color: var(--theme-toggle-text);
    border-radius: 0.75rem;
    padding: 0.45rem 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s var(--auth-ease-out),
        border-color 0.3s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring),
        box-shadow 0.3s var(--auth-ease-out);
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-toggle-btn:hover {
    background: var(--theme-toggle-hover);
    border-color: rgba(139, 13, 77, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 13, 77, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-toggle-btn:active {
    transform: translateY(0) scale(0.97);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.45);
    outline-offset: 2px;
}

.theme-toggle-icon {
    font-size: 0.95rem;
    line-height: 1;
}

.theme-toggle-text {
    font-size: 0.82rem;
    line-height: 1;
    white-space: nowrap;
}

.theme-toggle:hover {
    background: var(--theme-toggle-hover);
    border-color: rgba(139, 13, 77, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139, 13, 77, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.theme-toggle:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.45);
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: translateY(0) scale(0.93);
}

/* Icon base */
.theme-icon {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.25s ease;
}

/* Light mode: moon visible, sun hidden */
.theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

/* Dark mode: sun visible, moon hidden */
[data-theme="dark"] .theme-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Dark mode button overrides */
[data-theme="dark"] .theme-toggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(178, 107, 147, 0.08);
}

[data-theme="dark"] .theme-toggle:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(178, 107, 147, 0.1);
}

[data-theme="dark"] .theme-toggle-btn {
    background: rgba(44, 18, 33, 0.94);
    border-color: #9f5d7f;
    color: #fdf3f8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(178, 107, 147, 0.08);
}

[data-theme="dark"] .theme-toggle-btn:hover {
    background: rgba(62, 27, 46, 0.96);
    border-color: #c581a5;
    color: #fff1f8;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(178, 107, 147, 0.1);
}

[data-theme="dark"] .theme-toggle-btn:focus-visible {
    outline: 2px solid rgba(197, 129, 165, 0.72);
}

@media (prefers-reduced-motion: reduce) {

    .theme-toggle,
    .theme-toggle-btn,
    .theme-icon {
        transition: none;
    }

    .theme-toggle-btn:hover,
    .theme-toggle:hover,
    .theme-toggle:active {
        transform: none;
    }
}

.auth-topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.42), transparent 48%);
}

.auth-shell {
    width: min(760px, 95vw);
    margin: 0 auto;
}

.auth-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: var(--auth-card-bg);
    padding: clamp(1.3rem, 3vw, 2.4rem);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    animation: auth-fade-up 0.5s var(--auth-ease-out);
}

.auth-card-logo-palette {
    border-color: rgba(139, 13, 77, 0.24);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 0 0 1px rgba(139, 13, 77, 0.06);
}

.auth-card-logo-palette::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
    background: linear-gradient(90deg, #6f0a3f 0%, #8b0d4d 55%, #b26b93 100%);
}

.auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, transparent 50%);
}

.auth-header-title {
    margin: 0 0 0.35rem;
    color: var(--auth-ink);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-header-subtitle {
    margin: 0;
    color: var(--auth-muted);
    font-size: 1rem;
}

.auth-field {
    margin-top: 0.95rem;
}

.auth-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--auth-ink);
    font-weight: 700;
    font-size: 0.95rem;
}

.auth-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    padding: 0.74rem 0.9rem;
    color: var(--auth-ink);
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(5, 25, 20, 0.04);
    transition: border-color 0.3s var(--auth-ease-out),
        box-shadow 0.3s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring),
        background-color 0.3s var(--auth-ease-out);
}

.auth-input:hover {
    border-color: #b4ccef;
    background-color: #fbfdff;
    box-shadow: inset 0 1px 2px rgba(5, 25, 20, 0.04),
        0 2px 8px rgba(139, 13, 77, 0.06);
}

.auth-input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-ring),
        inset 0 1px 2px rgba(139, 13, 77, 0.06);
    transform: translateY(-1px);
}

.auth-input:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.36);
    outline-offset: 2px;
}

.auth-input.is-invalid {
    border-color: var(--auth-danger);
}

.auth-error {
    margin-top: 0.35rem;
    color: var(--auth-danger);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.95rem;
}

.auth-link {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    margin-top: 1.1rem;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b0d4d 0%, #a14475 60%, #b26b93 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.98rem;
    padding: 0.88rem 1rem;
    transition: transform 0.2s var(--auth-ease-spring),
        box-shadow 0.35s var(--auth-ease-out),
        filter 0.3s var(--auth-ease-out);
    box-shadow: 0 4px 14px rgba(139, 13, 77, 0.28),
        0 1px 3px rgba(139, 13, 77, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.auth-btn:hover {
    box-shadow: 0 8px 24px rgba(139, 13, 77, 0.38),
        0 2px 6px rgba(139, 13, 77, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.auth-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.22),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.auth-btn:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.55);
    outline-offset: 2px;
}

.auth-status {
    margin-top: 0.9rem;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 700;
}

.auth-status-success {
    background: #ecfdf3;
    color: #087443;
    border: 1px solid #b7f0d3;
}

.auth-status-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

@keyframes auth-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.99);
        filter: blur(2px);
    }

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

@media (max-width: 768px) {
    .auth-topbar {
        border-radius: 14px;
    }

    .auth-card {
        border-radius: 18px;
    }
}

/* Login page specific styles */

.login-shell {
    width: min(1040px, 96vw);
    margin: clamp(1rem, 4vw, 3rem) auto;
    position: relative;
    isolation: isolate;
}

.login-shell::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: radial-gradient(circle at 20% 20%, rgba(139, 13, 77, 0.14), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(139, 13, 77, 0.08), transparent 50%),
        linear-gradient(120deg, rgba(139, 13, 77, 0.1), rgba(178, 107, 147, 0.08));
    border-radius: 36px;
    filter: blur(10px);
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
}

.login-showcase {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: linear-gradient(165deg, rgba(74, 18, 47, 0.96) 0%, rgba(139, 13, 77, 0.88) 100%);
    color: #eef8ff;
    padding: clamp(1.4rem, 3vw, 2.1rem);
    box-shadow: var(--auth-shadow-strong);
}

.login-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.14), transparent 45%);
}

.showcase-eyebrow {
    margin: 0;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(244, 252, 255, 0.98);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.14);
}

.showcase-title {
    margin: 0.9rem 0 0;
    font-size: clamp(1.55rem, 2.5vw, 2.2rem);
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.showcase-description {
    margin: 0.85rem 0 0;
    max-width: 46ch;
    color: rgba(236, 248, 255, 0.95);
    line-height: 1.75;
}

.showcase-points {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.showcase-points li {
    position: relative;
    padding-inline-start: 1.2rem;
    color: rgba(236, 248, 255, 0.95);
    font-weight: 500;
}

.showcase-points li::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    inset-inline-start: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(236, 248, 255, 0.82);
}

.showcase-meta {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.showcase-meta-text {
    font-size: 0.86rem;
    color: rgba(236, 248, 255, 0.9);
}

.login-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: var(--auth-card-bg);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: var(--auth-shadow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.52) 0%, transparent 50%);
}

.login-header h2 {
    color: var(--auth-ink);
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.login-header p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 1rem;
}

.tenant-chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #f4fbff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.login-form {
    margin-top: 1.25rem;
}

.form-alert {
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #9f1239;
    padding: 0.72rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.field-group {
    margin-bottom: 1rem;
}

.field-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--auth-ink);
    font-weight: 700;
    font-size: 0.96rem;
}

.field-input {
    width: 100%;
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    padding: 0.72rem 0.9rem;
    font-size: 1rem;
    color: var(--auth-ink);
    box-shadow: inset 0 1px 2px rgba(5, 25, 20, 0.04);
    transition: border-color 0.3s var(--auth-ease-out),
        box-shadow 0.3s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring),
        background-color 0.3s var(--auth-ease-out);
    background: #fff;
}

.field-help {
    margin: 0.42rem 0 0;
    color: var(--auth-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.field-input:hover {
    border-color: #d7b4c8;
    background-color: #fffafc;
    box-shadow: inset 0 1px 2px rgba(5, 25, 20, 0.04),
        0 2px 8px rgba(139, 13, 77, 0.06);
}

.field-input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-ring),
        inset 0 1px 2px rgba(139, 13, 77, 0.06);
    transform: translateY(-1px);
}

.field-input:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.36);
    outline-offset: 2px;
}

.field-invalid {
    border-color: var(--auth-danger);
}

.field-error {
    color: var(--auth-danger);
    margin-top: 0.4rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin: 0.3rem 0 1.2rem;
}

.remember-row {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 600;
    color: var(--auth-muted);
    margin: 0;
}

.forgot-link {
    color: var(--auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.forgot-link:hover {
    color: var(--auth-accent-hover);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #8b0d4d 0%, #a14475 60%, #b26b93 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    padding: 0.88rem 1rem;
    transition: transform 0.2s var(--auth-ease-spring),
        box-shadow 0.35s var(--auth-ease-out),
        filter 0.3s var(--auth-ease-out);
    box-shadow: 0 4px 14px rgba(139, 13, 77, 0.28),
        0 1px 3px rgba(139, 13, 77, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.submit-btn:hover {
    box-shadow: 0 8px 24px rgba(139, 13, 77, 0.38),
        0 2px 6px rgba(139, 13, 77, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.submit-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.22),
        inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

.submit-btn:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.55);
    outline-offset: 2px;
}

.form-progress {
    display: none;
    margin-top: 0.8rem;
    padding: 0.62rem 0.75rem;
    border-radius: 12px;
    border: 1px solid #dfbfd0;
    background: #fdf3f8;
    color: #6f0a3f;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.progress-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--auth-accent);
    box-shadow: 0 0 0 0 rgba(139, 13, 77, 0.35);
    will-change: transform, box-shadow;
    animation: auth-pulse 1.4s ease-out infinite;
}

@keyframes auth-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 13, 77, 0.35);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(139, 13, 77, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(139, 13, 77, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .progress-dot {
        animation: none;
    }
}

@media (min-width: 992px) {
    .login-grid {
        grid-template-columns: minmax(320px, 1fr) minmax(420px, 1.05fr);
        gap: 1rem;
    }
}

@media (max-width: 991px) {
    .login-showcase {
        border-radius: 22px;
    }
}

@media (max-width: 640px) {
    .login-shell {
        width: min(100%, 96vw);
    }

    .login-showcase,
    .login-card {
        border-radius: 18px;
    }

    .showcase-title {
        font-size: 1.55rem;
    }
}

/* System-wide master theme based on login style */

.app-master-theme {
    position: relative;
    background-color: #eef2f8;
    background-image:
        radial-gradient(ellipse 75% 50% at 70% -5%, rgba(139, 13, 77, 0.1), transparent),
        radial-gradient(ellipse 55% 40% at 15% 8%, rgba(178, 107, 147, 0.07), transparent),
        radial-gradient(ellipse 50% 55% at 50% 100%, rgba(139, 13, 77, 0.05), transparent),
        linear-gradient(180deg, #f5f8fc 0%, #ebf1fa 50%, #eef3f9 100%);
    color: var(--auth-ink);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.app-master-theme::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    background-image: radial-gradient(rgba(5, 25, 20, 0.04) 0.5px, transparent 0.5px);
    background-size: 6px 6px;
}

body.app-master-theme .topbar-glass,
body.app-master-theme .master-navbar,
body.app-master-theme .navbar.bg-white {
    border-color: rgba(217, 178, 198, 0.6);
    background: rgba(255, 250, 253, 0.92);
    box-shadow: 0 10px 26px -18px rgba(111, 10, 63, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.app-master-theme footer {
    border-color: rgba(217, 178, 198, 0.45);
    background: rgba(255, 250, 253, 0.92);
}

.auth-page .app-footer {
    border-color: rgba(217, 178, 198, 0.45);
    background: rgba(255, 250, 253, 0.92);
}

.app-master-theme .app-footer-main {
    box-shadow: 0 10px 28px -20px rgba(111, 10, 63, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.auth-page .app-footer-main {
    box-shadow: 0 10px 28px -20px rgba(111, 10, 63, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.app-master-theme .app-footer-chip {
    background: rgba(255, 255, 255, 0.82);
}

.auth-page .app-footer-chip {
    background: rgba(255, 255, 255, 0.82);
}

.app-master-theme .app-footer-top {
    box-shadow: 0 8px 20px -16px rgba(111, 10, 63, 0.42);
}

.auth-page .app-footer-top {
    box-shadow: 0 8px 20px -16px rgba(111, 10, 63, 0.42);
}

.app-master-theme .app-footer-top:hover {
    transform: translateY(-1px);
}

.auth-page .app-footer-top:hover {
    transform: translateY(-1px);
}

[data-theme="dark"] .auth-page,
[data-theme="dark"] .app-master-theme {
    background-color: #140812;
    background-image:
        radial-gradient(ellipse 70% 45% at 65% -8%, rgba(178, 107, 147, 0.10), transparent),
        radial-gradient(ellipse 50% 35% at 20% 10%, rgba(139, 13, 77, 0.07), transparent),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(93, 27, 61, 0.08), transparent),
        linear-gradient(180deg, #1c0a17 0%, #140812 50%, #160914 100%);
    color: var(--auth-ink);
}

[data-theme="dark"] .auth-page::before,
[data-theme="dark"] .app-master-theme::before {
    opacity: 0.1;
    background-image: radial-gradient(rgba(160, 190, 230, 0.12) 0.5px, transparent 0.5px);
}

[data-theme="dark"] .auth-topbar,
[data-theme="dark"] .app-master-theme .master-navbar,
[data-theme="dark"] .app-master-theme .navbar.bg-white,
[data-theme="dark"] .app-master-theme .topbar-glass {
    border-color: rgba(154, 88, 124, 0.45) !important;
    background: rgba(30, 12, 24, 0.94) !important;
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(178, 107, 147, 0.06) !important;
}

[data-theme="dark"] .auth-nav-link {
    color: var(--auth-top-link);
}

[data-theme="dark"] .auth-nav-link:hover {
    background: rgba(178, 107, 147, 0.24);
    color: var(--auth-top-link);
}

[data-theme="dark"] .auth-nav-link-primary {
    background: rgba(178, 107, 147, 0.28);
    color: var(--auth-top-link);
}

[data-theme="dark"] .auth-topbar>nav {
    border-color: rgba(178, 107, 147, 0.34);
    background: rgba(44, 18, 33, 0.84);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(178, 107, 147, 0.12);
}

[data-theme="dark"] .theme-toggle {
    background: rgba(44, 18, 33, 0.94);
    border-color: #9f5d7f;
    color: #fdf3f8;
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(62, 27, 46, 0.96);
    border-color: #c581a5;
    color: #fff1f8;
}

[data-theme="dark"] .theme-toggle:focus-visible {
    outline: 2px solid rgba(197, 129, 165, 0.72);
}

[data-theme="dark"] .app-master-theme footer {
    border-color: rgba(154, 88, 124, 0.32) !important;
    background: rgba(30, 12, 24, 0.94) !important;
}

[data-theme="dark"] .auth-page .app-footer {
    border-color: rgba(154, 88, 124, 0.32) !important;
    background: rgba(30, 12, 24, 0.94) !important;
}

[data-theme="dark"] .app-master-theme footer .text-slate-500 {
    color: #e6cdd9 !important;
}

[data-theme="dark"] .auth-page .app-footer .text-slate-500 {
    color: #e6cdd9 !important;
}

[data-theme="dark"] .app-master-theme .app-footer-main {
    border-color: rgba(154, 88, 124, 0.4);
    background: rgba(36, 14, 29, 0.9);
    box-shadow: 0 20px 36px -28px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(178, 107, 147, 0.14);
}

[data-theme="dark"] .auth-page .app-footer-main {
    border-color: rgba(154, 88, 124, 0.4);
    background: rgba(36, 14, 29, 0.9);
    box-shadow: 0 20px 36px -28px rgba(0, 0, 0, 0.62),
        inset 0 1px 0 rgba(178, 107, 147, 0.14);
}

[data-theme="dark"] .app-master-theme .app-footer-chip {
    border-color: rgba(154, 88, 124, 0.58) !important;
    background: rgba(66, 28, 49, 0.8) !important;
    color: #f0dfe7 !important;
}

[data-theme="dark"] .auth-page .app-footer-chip {
    border-color: rgba(154, 88, 124, 0.58) !important;
    background: rgba(66, 28, 49, 0.8) !important;
    color: #f0dfe7 !important;
}

[data-theme="dark"] .app-master-theme .app-footer-top {
    border-color: rgba(176, 112, 146, 0.58) !important;
    background: rgba(66, 28, 49, 0.88) !important;
    color: #f9eaf2 !important;
}

[data-theme="dark"] .auth-page .app-footer-top {
    border-color: rgba(176, 112, 146, 0.58) !important;
    background: rgba(66, 28, 49, 0.88) !important;
    color: #f9eaf2 !important;
}

[data-theme="dark"] .app-master-theme .app-footer-top:hover {
    background: rgba(90, 38, 65, 0.92) !important;
}

[data-theme="dark"] .auth-page .app-footer-top:hover {
    background: rgba(90, 38, 65, 0.92) !important;
}

[data-theme="dark"] .auth-card,
[data-theme="dark"] .login-card,
[data-theme="dark"] .app-master-theme .card,
[data-theme="dark"] .app-master-theme .panel,
[data-theme="dark"] .app-master-theme .modal-content,
[data-theme="dark"] .app-master-theme .table-responsive,
[data-theme="dark"] .app-master-theme .content-card {
    background: var(--auth-card-bg);
    border-color: #5f3249;
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(178, 107, 147, 0.06);
}

[data-theme="dark"] .login-showcase {
    background: linear-gradient(165deg, rgba(48, 10, 29, 0.97) 0%, rgba(121, 22, 67, 0.95) 100%);
    border-color: rgba(193, 128, 161, 0.42);
}

[data-theme="dark"] .showcase-meta-text,
[data-theme="dark"] .showcase-eyebrow,
[data-theme="dark"] .showcase-description,
[data-theme="dark"] .showcase-points li {
    color: rgba(250, 233, 243, 0.93);
}

[data-theme="dark"] .form-alert {
    border-color: #7a2435;
    background: rgba(127, 29, 29, 0.3);
    color: #fecdd3;
}

[data-theme="dark"] .field-help {
    color: #e6cdd9;
}

[data-theme="dark"] .auth-card-logo-palette {
    border-color: rgba(178, 107, 147, 0.36);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(178, 107, 147, 0.08),
        0 0 0 1px rgba(178, 107, 147, 0.1);
}

[data-theme="dark"] .form-progress {
    border-color: #7a425f;
    background: rgba(59, 18, 41, 0.78);
    color: #f0cfde;
}

[data-theme="dark"] .auth-card::before,
[data-theme="dark"] .login-card::before,
[data-theme="dark"] .auth-topbar::after {
    background: linear-gradient(145deg, rgba(255, 228, 241, 0.07), transparent 50%);
}

[data-theme="dark"] .auth-header-title,
[data-theme="dark"] .auth-label,
[data-theme="dark"] .field-group label,
[data-theme="dark"] .login-header h2,
[data-theme="dark"] .app-brand-title,
[data-theme="dark"] .app-master-theme .text-slate-800,
[data-theme="dark"] .app-master-theme .text-slate-700,
[data-theme="dark"] .auth-page .text-slate-800,
[data-theme="dark"] .auth-page .text-slate-700 {
    color: #f7ecf2 !important;
}

[data-theme="dark"] .auth-header-subtitle,
[data-theme="dark"] .login-header p,
[data-theme="dark"] .app-master-theme .text-slate-600,
[data-theme="dark"] .auth-page .text-slate-600 {
    color: #d6b8c8 !important;
}

[data-theme="dark"] .auth-input,
[data-theme="dark"] .field-input,
[data-theme="dark"] .app-master-theme .form-control,
[data-theme="dark"] .app-master-theme .custom-select,
[data-theme="dark"] .app-master-theme .form-select,
[data-theme="dark"] .app-master-theme input[type="text"],
[data-theme="dark"] .app-master-theme input[type="email"],
[data-theme="dark"] .app-master-theme input[type="number"],
[data-theme="dark"] .app-master-theme input[type="password"],
[data-theme="dark"] .app-master-theme textarea,
[data-theme="dark"] .app-master-theme select {
    background: #2a1321;
    border-color: #7a425f;
    color: #f7ecf2;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .auth-input::placeholder,
[data-theme="dark"] .field-input::placeholder,
[data-theme="dark"] .app-master-theme input::placeholder,
[data-theme="dark"] .app-master-theme textarea::placeholder {
    color: #bb93a8;
}

[data-theme="dark"] .auth-input:hover,
[data-theme="dark"] .field-input:hover {
    background: #371827;
    border-color: #9b5d80;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .app-master-theme .table {
    background: rgba(10, 18, 32, 0.88);
}

[data-theme="dark"] .app-master-theme .table thead th {
    background: rgba(34, 56, 86, 0.6);
    color: #d4e4fc;
    border-bottom-color: #2f4563;
}

[data-theme="dark"] .app-master-theme .table td,
[data-theme="dark"] .app-master-theme .table th {
    color: #c8daf0;
    border-color: #1a3635;
}

[data-theme="dark"] .app-master-theme .table tbody tr:hover {
    background: rgba(178, 107, 147, 0.06);
}

[data-theme="dark"] .app-master-theme .dropdown-menu {
    background: #2a1321;
    border-color: #7a425f;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(178, 107, 147, 0.1);
}

[data-theme="dark"] .app-master-theme .dropdown-item {
    color: #f8eaf2;
}

[data-theme="dark"] .app-master-theme .dropdown-item:hover,
[data-theme="dark"] .app-master-theme .dropdown-item:focus {
    background: rgba(178, 107, 147, 0.14);
    color: #fff1f8;
}

[data-theme="dark"] .app-master-theme .navbar .nav-link,
[data-theme="dark"] .app-master-theme .navbar .navbar-brand,
[data-theme="dark"] .app-master-theme .navbar .dropdown-toggle {
    color: #f8eaf2 !important;
}

[data-theme="dark"] .app-master-theme .topbar-brand-text {
    color: #f3dce9 !important;
}

[data-theme="dark"] .app-master-theme .navbar .nav-link:hover,
[data-theme="dark"] .app-master-theme .navbar .nav-link:focus {
    color: #fff1f8 !important;
}

[data-theme="dark"] .app-master-theme .btn-light,
[data-theme="dark"] .app-master-theme .btn-secondary,
[data-theme="dark"] .app-master-theme .btn-warning {
    background: #1b2d46;
    color: #d7e6fb;
    border-color: #3a5270;
}

[data-theme="dark"] .app-master-theme .btn-light:hover,
[data-theme="dark"] .app-master-theme .btn-secondary:hover,
[data-theme="dark"] .app-master-theme .btn-warning:hover {
    background: #253b5b;
    color: #f3f8ff;
}

[data-theme="dark"] .toast-error {
    background: #d64545;
}

[data-theme="dark"] .toast-success {
    background: #3f7fd4;
}

.app-master-theme .app-brand-title {
    color: var(--auth-ink);
    text-shadow: none;
}

.app-master-theme .master-navbar,
.app-master-theme .navbar.bg-white,
.app-master-theme .topbar-glass {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 20px;
    background: rgba(248, 254, 252, 0.82) !important;
    backdrop-filter: blur(16px) saturate(1.6);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.app-master-theme .card,
.app-master-theme .panel,
.app-master-theme .modal-content,
.app-master-theme .table-responsive,
.app-master-theme .content-card {
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--auth-shadow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: box-shadow 0.4s var(--auth-ease-out),
        transform 0.3s var(--auth-ease-out);
}

.app-master-theme .card:hover,
.app-master-theme .content-card:hover {
    box-shadow: var(--auth-shadow-strong);
    transform: translateY(-1px);
}

.app-master-theme .table {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.app-master-theme .table thead th {
    color: #1a3362;
    border-bottom: 1px solid #c4d8d6;
    background: linear-gradient(180deg, #f0fdfa, #e4edfa);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    padding: 0.75rem 0.85rem;
}

.app-master-theme .table td,
.app-master-theme .table th {
    border-color: #e4eaf3;
    padding: 0.7rem 0.85rem;
}

.app-master-theme .table tbody tr {
    transition: background-color 0.25s var(--auth-ease-out);
}

.app-master-theme .table tbody tr:hover {
    background: rgba(139, 13, 77, 0.04);
}

.app-master-theme .table tbody tr:nth-child(even) {
    background: rgba(237, 243, 252, 0.4);
}

.app-master-theme .table tbody tr:nth-child(even):hover {
    background: rgba(139, 13, 77, 0.06);
}

.app-master-theme .form-control,
.app-master-theme .custom-select,
.app-master-theme .form-select,
.app-master-theme input[type="text"],
.app-master-theme input[type="email"],
.app-master-theme input[type="number"],
.app-master-theme input[type="password"],
.app-master-theme textarea,
.app-master-theme select {
    border: 1px solid var(--auth-border);
    border-radius: 14px;
    min-height: 44px;
    color: var(--auth-ink);
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(5, 25, 20, 0.04);
    transition: border-color 0.3s var(--auth-ease-out),
        box-shadow 0.3s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring);
}

.app-master-theme .form-control:focus,
.app-master-theme .custom-select:focus,
.app-master-theme .form-select:focus,
.app-master-theme input:focus,
.app-master-theme textarea:focus,
.app-master-theme select:focus {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-ring),
        inset 0 1px 2px rgba(139, 13, 77, 0.06);
    transform: translateY(-1px);
}

.app-master-theme .btn {
    border-radius: 14px;
    font-weight: 700;
    transition: transform 0.2s var(--auth-ease-spring),
        box-shadow 0.35s var(--auth-ease-out),
        background-color 0.3s var(--auth-ease-out),
        filter 0.3s var(--auth-ease-out);
}

.app-master-theme .btn-primary,
.app-master-theme .btn-success,
.app-master-theme .btn-info {
    border: none;
    color: #ffffff;
    background: linear-gradient(135deg, #8b0d4d 0%, #a14475 60%, #b26b93 100%);
    box-shadow: 0 4px 14px rgba(139, 13, 77, 0.28),
        0 1px 3px rgba(139, 13, 77, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.app-master-theme .btn-primary:hover,
.app-master-theme .btn-success:hover,
.app-master-theme .btn-info:hover,
.app-master-theme .btn-primary:focus,
.app-master-theme .btn-success:focus,
.app-master-theme .btn-info:focus {
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 13, 77, 0.38),
        0 2px 6px rgba(139, 13, 77, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.app-master-theme .btn:active {
    transform: translateY(0) scale(0.98);
}

.app-master-theme .btn-light,
.app-master-theme .btn-secondary,
.app-master-theme .btn-warning {
    border-color: #c8d6ea;
    color: #1e3a66;
    background: linear-gradient(180deg, #f4f8ff, #f0fdfa);
    box-shadow: 0 1px 3px rgba(139, 13, 77, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-master-theme .btn-light:hover,
.app-master-theme .btn-secondary:hover,
.app-master-theme .btn-warning:hover {
    color: #15295a;
    background: linear-gradient(180deg, #f0fdfa, #ccfbf1);
    border-color: #b4ccef;
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-master-theme .alert {
    border-radius: 14px;
}

.app-master-theme .dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--auth-border);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 16px rgba(5, 25, 20, 0.06),
        0 20px 48px -8px rgba(5, 25, 20, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: menu-panel-fade 0.22s var(--auth-ease-out);
}

.app-master-theme .dropdown-item {
    border-radius: 8px;
    margin: 2px 4px;
    transition: background-color 0.25s var(--auth-ease-out),
        color 0.25s var(--auth-ease-out);
}

.app-master-theme .dropdown-item:hover,
.app-master-theme .dropdown-item:focus {
    background: #f0fdfa;
    color: #8b0d4d;
}

.app-master-theme a:focus-visible,
.app-master-theme button:focus-visible,
.app-master-theme .btn:focus-visible,
.app-master-theme .form-control:focus-visible,
.app-master-theme .custom-select:focus-visible,
.app-master-theme .form-select:focus-visible,
.app-master-theme input:focus-visible,
.app-master-theme textarea:focus-visible,
.app-master-theme select:focus-visible {
    outline: 2px solid rgba(139, 13, 77, 0.5);
    outline-offset: 2px;
}

.app-master-theme .pagination .page-link {
    color: #8b0d4d;
    border-radius: 10px;
    border-color: #c4d8d6;
    transition: background-color 0.25s var(--auth-ease-out),
        color 0.25s var(--auth-ease-out),
        transform 0.2s var(--auth-ease-spring);
}

.app-master-theme .pagination .page-link:hover {
    background: #f0fdfa;
    transform: translateY(-1px);
}

.app-master-theme .pagination .page-item.active .page-link {
    color: #ffffff;
    border-color: #8b0d4d;
    background: linear-gradient(135deg, #8b0d4d, #a14475);
    box-shadow: 0 2px 8px rgba(139, 13, 77, 0.24);
}

@media (max-width: 768px) {

    .app-master-theme .master-navbar,
    .app-master-theme .navbar.bg-white,
    .app-master-theme .topbar-glass {
        border-radius: 16px;
    }

    .app-master-theme .card,
    .app-master-theme .panel,
    .app-master-theme .modal-content,
    .app-master-theme .table-responsive,
    .app-master-theme .content-card {
        border-radius: 18px;
    }

    .app-master-theme .card:hover,
    .app-master-theme .content-card:hover {
        transform: none;
    }
}

@media (hover: hover) {
    .auth-input:hover {
        border-color: #bfd5f5;
        background-color: #fbfdff;
    }

    .field-input:hover {
        border-color: #bfd5f5;
        background-color: #fbfdff;
    }
}

@media (hover: none) {

    .auth-input:hover,
    .field-input:hover {
        border-color: var(--auth-border);
        background-color: #ffffff;
    }
}

.toast-stack {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1055;
    max-width: min(90vw, 360px);
}

.toast-item {
    border-radius: 14px;
    padding: 0.7rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    animation: toast-in 0.35s var(--auth-ease-out);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toast-error {
    background: linear-gradient(135deg, #c22d22, #e04638);
    box-shadow: 0 4px 16px rgba(194, 45, 34, 0.3);
}

.toast-success {
    background: linear-gradient(135deg, #8b0d4d, #a14475);
    box-shadow: 0 4px 16px rgba(139, 13, 77, 0.3);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.96);
    }

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

@media (max-width: 768px) {
    .login-card {
        border-radius: 18px;
    }

    .toast-stack {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   Dark Mode — Create-Order Page (.order-* components)
   ══════════════════════════════════════════════════════════════ */

/* Page shell background */
[data-theme="dark"] .order-page-shell {
    background:
        radial-gradient(circle at top right, rgba(139, 13, 77, 0.10), transparent 24%),
        radial-gradient(circle at top left, rgba(139, 13, 77, 0.08), transparent 18%),
        linear-gradient(180deg, #071212 0%, #040a09 100%);
}

/* Main card shell */
[data-theme="dark"] .order-shell {
    background: rgba(5, 14, 13, 0.95);
    border-color: #1a3635;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 10px 30px rgba(0, 4, 15, 0.4);
}

/* Header area */
[data-theme="dark"] .order-header {
    background-image: linear-gradient(to bottom right, #0f1c30, #0e1a2e, #111d33);
    border-bottom-color: #1a3635;
}

[data-theme="dark"] .order-title {
    color: #e0f2f0;
}

[data-theme="dark"] .order-eyebrow {
    background: rgba(178, 107, 147, 0.14);
    color: #2dd4bf;
}

[data-theme="dark"] .order-subtitle {
    color: #7ab5b0;
}

/* Header metadata chips */
[data-theme="dark"] .order-header-chip {
    background: rgba(18, 28, 46, 0.85);
    border-color: #2a405e;
}

[data-theme="dark"] .order-header-chip-muted {
    background: rgba(14, 22, 36, 0.9);
    border-color: #1a3635;
}

[data-theme="dark"] .order-header-chip__label {
    color: #8da0bd;
}

[data-theme="dark"] .order-header-chip__value {
    color: #2dd4bf;
}

/* Sections (fieldsets) */
[data-theme="dark"] .order-section,
[data-theme="dark"] .order-section[class] {
    background: rgba(31, 14, 24, 0.82);
    border-color: rgba(178, 107, 147, 0.22) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.26),
        0 10px 26px rgba(0, 0, 0, 0.24);
}

[data-theme="dark"] .order-section::before {
    opacity: 0.7;
}

/* Legend */
[data-theme="dark"] .order-legend {
    color: #e2f4f2;
    border-bottom-color: #1a3635;
}

[data-theme="dark"] .order-legend-icon svg {
    color: #b26b93;
}

/* Labels */
[data-theme="dark"] .order-label {
    color: #a7f3d0;
}

[data-theme="dark"] .order-label-hint {
    color: #7a93b4;
}

[data-theme="dark"] .order-hint {
    color: #7a93b4;
}

/* Input/Select/File controls */
[data-theme="dark"] .order-input,
[data-theme="dark"] .order-file,
[data-theme="dark"] .order-select-native,
[data-theme="dark"] .order-textarea {
    background: #0c1625 !important;
    border-color: #2f4563 !important;
    color: #e2f4f2 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .order-input::placeholder,
[data-theme="dark"] .order-file::placeholder,
[data-theme="dark"] .order-select-native::placeholder,
[data-theme="dark"] .order-textarea::placeholder {
    color: #b795a7 !important;
}

[data-theme="dark"] .order-input:focus,
[data-theme="dark"] .order-file:focus,
[data-theme="dark"] .order-select-native:focus,
[data-theme="dark"] .order-textarea:focus {
    border-color: rgba(178, 107, 147, 0.72) !important;
    background: rgba(24, 10, 18, 0.92) !important;
    box-shadow: 0 0 0 3px rgba(178, 107, 147, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .order-input-disabled {
    background: #0a1525 !important;
    color: #5a7292 !important;
}

/* Rich-text editor */
[data-theme="dark"] .order-editor {
    background: #0c1625;
    border-color: #2f4563;
}

[data-theme="dark"] .order-editor:focus-within {
    border-color: rgba(178, 107, 147, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(178, 107, 147, 0.18), inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .order-editor-toolbar {
    background: #0f1c30;
    border-bottom-color: #1a3635;
}

[data-theme="dark"] .order-editor-btn {
    color: #8da0bd;
}

[data-theme="dark"] .order-editor-btn:hover {
    background: #1b2d46;
    color: #2dd4bf;
}

[data-theme="dark"] .order-editor-content {
    color: #e2f4f2;
}

[data-theme="dark"] .order-editor-content:empty::before {
    color: #c7a7b8;
}

[data-theme="dark"] .order-editor-sep {
    background: #1a3635;
}

[data-theme="dark"] .order-editor-palette {
    background: #0e1a2e;
    border-color: #2a405e;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Date inputs */
[data-theme="dark"] .order-date-readonly {
    background: #0a1525 !important;
    color: #8da0bd !important;
}

[data-theme="dark"] .order-date-native {
    color-scheme: dark;
}

/* Select native — dark chevron */
[data-theme="dark"] .order-select-native {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24' stroke='%238da0bd' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
}

/* Choice cards */
[data-theme="dark"] .order-choice {
    background: rgba(14, 22, 36, 0.88);
    border-color: #1a3635;
    color: #f2e4ec;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .order-choice:hover {
    border-color: rgba(178, 107, 147, 0.62);
    color: #ffe6f1;
    background: rgba(178, 107, 147, 0.08);
    box-shadow: 0 0 0 3px rgba(178, 107, 147, 0.12), 0 1px 4px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .order-choice-icon {
    background: #1b2d46;
    color: #8da0bd;
}

[data-theme="dark"] .order-choice:hover .order-choice-icon {
    background: rgba(178, 107, 147, 0.16);
    color: #2dd4bf;
}

[data-theme="dark"] .order-choice-selected {
    border-color: rgba(178, 107, 147, 0.78);
    color: #f3dce9;
    background: linear-gradient(135deg, rgba(178, 107, 147, 0.1) 0%, rgba(178, 107, 147, 0.14) 100%);
    box-shadow: 0 0 0 3px rgba(178, 107, 147, 0.18), 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .order-choice-selected .order-choice-icon {
    background: rgba(178, 107, 147, 0.2);
    color: #ffd8ea;
}

/* Step badge */
[data-theme="dark"] .order-step-badge {
    background: #8b0d4d;
}

/* File upload zone */
[data-theme="dark"] .order-file-zone {
    background: rgba(14, 22, 36, 0.7);
    border-color: #2f4563;
}

[data-theme="dark"] .order-file-zone:hover {
    border-color: #5a92d4;
    background: rgba(178, 107, 147, 0.06);
}

[data-theme="dark"] .order-file-zone__icon {
    background: rgba(178, 107, 147, 0.14);
    color: #b26b93;
}

[data-theme="dark"] .order-file-zone__text {
    color: #a7f3d0;
}

[data-theme="dark"] .order-file-zone__hint {
    color: #7a93b4;
}

/* Suggestions dropdown */
[data-theme="dark"] .order-suggestions {
    background: rgba(14, 22, 36, 0.98);
    border-color: #2a405e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 16px 32px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .order-suggestion {
    background: transparent;
    border-color: #1b2d46;
    border-inline-start-color: transparent;
}

[data-theme="dark"] .order-suggestion:hover,
[data-theme="dark"] .order-suggestion:focus,
[data-theme="dark"] .order-suggestion:active {
    background: rgba(178, 107, 147, 0.08);
    border-inline-start-color: #5a92d4;
}

[data-theme="dark"] .order-suggestion__name {
    color: #a7f3d0;
}

[data-theme="dark"] .order-suggestion:hover .order-suggestion__name {
    color: #2dd4bf;
}

[data-theme="dark"] .order-suggestion__sub {
    color: #6b84a5;
}

[data-theme="dark"] .order-suggestion:hover .order-suggestion__sub {
    color: #b26b93;
}

[data-theme="dark"] .order-suggestion-icon {
    color: #5a7292;
}

[data-theme="dark"] .order-suggestion:hover .order-suggestion-icon {
    color: #b26b93;
}

/* Company search icon */
[data-theme="dark"] .order-company-search-icon {
    color: #5a7292;
}

[data-theme="dark"] .order-company-wrap:focus-within .order-company-search-icon {
    color: #b26b93;
}

/* Alerts */
[data-theme="dark"] .order-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
    color: #6ee7b7;
}

[data-theme="dark"] .order-alert-error {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.25);
    color: #fda4af;
}

[data-theme="dark"] .order-alert-info {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.2);
    color: #7dd3fc;
}

/* Info note */
[data-theme="dark"] .order-info-note {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.18);
    color: #7dd3fc;
}

/* VAT total */
[data-theme="dark"] .order-vat-total {
    background: rgba(178, 107, 147, 0.1);
    border-color: rgba(178, 107, 147, 0.2);
    color: #f3dce9;
}

[data-theme="dark"] .order-vat-total strong {
    color: #ffd8ea;
}

[data-theme="dark"] .app-footer .app-footer-title {
    color: #f3dce9 !important;
}

/* VAT badge */
[data-theme="dark"] .order-vat-badge {
    background: rgba(178, 107, 147, 0.1);
    border-color: rgba(178, 107, 147, 0.18);
    color: #2dd4bf;
}

/* Company new prompt */
[data-theme="dark"] .order-company-new-prompt {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
}

[data-theme="dark"] .order-company-new-prompt svg {
    color: #34d399;
}

/* VAT warning */
[data-theme="dark"] .order-vat-warning {
    background: rgba(251, 146, 60, 0.08);
    border-color: rgba(251, 146, 60, 0.2);
    color: #fdba74;
}

[data-theme="dark"] .order-vat-warning svg {
    color: #fb923c;
}

/* Buttons */
[data-theme="dark"] .order-button-secondary {
    background: #1b2d46;
    border-color: #3a5270;
    color: #a7f3d0;
}

[data-theme="dark"] .order-button-secondary:hover {
    background: #253b5b;
    color: #f3f8ff;
}

[data-theme="dark"] .order-submit-wrap {
    border-top-color: rgba(178, 107, 147, 0.28);
}

/* Success panel */
[data-theme="dark"] .order-success-panel {
    background: rgba(139, 13, 77, 0.12);
    border-color: rgba(178, 107, 147, 0.35);
    box-shadow: 0 0 0 4px rgba(139, 13, 77, 0.14), 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .order-success-panel__title {
    color: #f3dce9;
}

[data-theme="dark"] .order-success-panel__message {
    color: #e2b6cf;
}

[data-theme="dark"] .order-success-panel__icon-wrap {
    background: rgba(139, 13, 77, 0.28);
}

[data-theme="dark"] .order-success-panel__order-no {
    background: rgba(14, 22, 36, 0.9);
    border-color: rgba(178, 107, 147, 0.35);
}

[data-theme="dark"] .order-success-panel__order-no-label {
    color: #8da0bd;
}

[data-theme="dark"] .order-success-panel__order-no-value {
    color: #e2f4f2;
}

/* Checkbox/Radio dark */
[data-theme="dark"] .order-checkbox,
[data-theme="dark"] .order-radio {
    accent-color: #8b0d4d;
    border-color: rgba(255, 255, 255, 0.9);
}

/* Tom Select — dark mode */
[data-theme="dark"] .order-create-page .ts-control {
    background-color: rgba(24, 10, 18, 0.86) !important;
    border-color: rgba(178, 107, 147, 0.30) !important;
    color: #f7ecf2 !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

[data-theme="dark"] .order-create-page .ts-wrapper.focus .ts-control {
    border-color: rgba(178, 107, 147, 0.72) !important;
    box-shadow: 0 0 0 4px rgba(178, 107, 147, 0.22) !important;
}

[data-theme="dark"] .order-create-page .ts-wrapper.ts-state-selected .ts-control {
    border-color: rgba(178, 107, 147, 0.82) !important;
    box-shadow: 0 0 0 4px rgba(178, 107, 147, 0.28) !important;
}

[data-theme="dark"] .order-create-page .ts-control input {
    color: #f7ecf2 !important;
}

[data-theme="dark"] .order-create-page .ts-control .item {
    color: #f7ecf2 !important;
}

[data-theme="dark"] .order-create-page .ts-wrapper:not(.has-items) .ts-control input::placeholder {
    color: #b795a7 !important;
}

[data-theme="dark"] .order-create-page .ts-dropdown {
    background: rgba(24, 10, 18, 0.98) !important;
    border-color: rgba(178, 107, 147, 0.30) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .order-create-page .ts-dropdown .option {
    color: #f3dce8 !important;
}

[data-theme="dark"] .order-create-page .ts-dropdown .option:hover,
[data-theme="dark"] .order-create-page .ts-dropdown .active {
    background: rgba(178, 107, 147, 0.24) !important;
    color: #ffe3f1 !important;
}

[data-theme="dark"] .order-create-page .ts-dropdown .selected {
    background: rgba(178, 107, 147, 0.28) !important;
    color: #ffe3f1 !important;
}

[data-theme="dark"] .order-create-page .ts-dropdown .ts-no-results {
    background: rgba(31, 14, 24, 0.90) !important;
    color: #cfaec0 !important;
}

[data-theme="dark"] .order-create-page .ts-wrapper.disabled .ts-control {
    background: rgba(24, 10, 18, 0.72) !important;
    border-color: rgba(178, 107, 147, 0.24) !important;
    color: #ba9aab !important;
}

/* Flatpickr — dark mode */
[data-theme="dark"] .flatpickr-calendar {
    background: #0e1a2e;
    border-color: #2a405e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 20px 40px -8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .flatpickr-current-month {
    color: #e2f4f2;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months {
    color: #e2f4f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%236da2ee' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:hover,
[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months:focus {
    background-color: #1b2d46;
}

[data-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months option {
    background: #0e1a2e;
    color: #e2f4f2;
}

[data-theme="dark"] .flatpickr-current-month .cur-year {
    color: #e2f4f2 !important;
}

[data-theme="dark"] .flatpickr-current-month .cur-year:hover,
[data-theme="dark"] .flatpickr-current-month .cur-year:focus {
    background-color: #1b2d46 !important;
}

[data-theme="dark"] .flatpickr-prev-month,
[data-theme="dark"] .flatpickr-next-month {
    color: #8da0bd !important;
    fill: #8da0bd !important;
}

[data-theme="dark"] .flatpickr-prev-month:hover,
[data-theme="dark"] .flatpickr-next-month:hover {
    background-color: #1b2d46 !important;
    color: #2dd4bf !important;
    fill: #2dd4bf !important;
}

[data-theme="dark"] .flatpickr-weekdays {
    border-bottom-color: #1e3048;
}

[data-theme="dark"] .flatpickr-weekday {
    color: #5a7292;
}

[data-theme="dark"] .flatpickr-day {
    color: #c8daf0;
}

[data-theme="dark"] .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-day.prevMonthDay:hover,
[data-theme="dark"] .flatpickr-day.nextMonthDay:hover {
    background: rgba(178, 107, 147, 0.12);
    color: #2dd4bf;
}

[data-theme="dark"] .flatpickr-day.today {
    border-color: #b26b93;
    color: #b26b93;
}

[data-theme="dark"] .flatpickr-day.today:hover {
    background: rgba(178, 107, 147, 0.12);
    color: #2dd4bf;
}

[data-theme="dark"] .flatpickr-day.selected,
[data-theme="dark"] .flatpickr-day.selected:hover {
    background: #3b6eb8;
    border-color: #3b6eb8;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 110, 184, 0.4);
}

[data-theme="dark"] .flatpickr-day.prevMonthDay,
[data-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #2f4563;
}

[data-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-theme="dark"] .flatpickr-day.flatpickr-disabled:hover {
    color: #1a3635;
}

/* ══════════════════════════════════════════════════════════════
   Dark Mode — All-Orders Page (Bootstrap legacy components)
   ══════════════════════════════════════════════════════════════ */

/* Fieldset & legend */
[data-theme="dark"] .app-master-theme fieldset {
    border-color: #1a3635 !important;
    background: rgba(14, 22, 36, 0.7);
    border-radius: 14px;
}

[data-theme="dark"] .app-master-theme legend {
    color: #a7f3d0;
    background: transparent;
}

/* Status table background colors */
.app-master-theme .bg-blue-green,
.app-master-theme td.bg-blue-green {
    background: rgba(96, 165, 250, 0.2) !important;
    color: #1e40af !important;
}

[data-theme="dark"] .app-master-theme .bg-yellow,
[data-theme="dark"] .app-master-theme td.bg-yellow {
    background: rgba(234, 179, 8, 0.18) !important;
    color: #fde047 !important;
}

[data-theme="dark"] .app-master-theme .bg-blue,
[data-theme="dark"] .app-master-theme td.bg-blue {
    background: rgba(59, 130, 246, 0.22) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .app-master-theme .bg-blue-green,
[data-theme="dark"] .app-master-theme td.bg-blue-green {
    background: rgba(178, 107, 147, 0.2) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .app-master-theme .bg-orange,
[data-theme="dark"] .app-master-theme td.bg-orange {
    background: rgba(249, 115, 22, 0.18) !important;
    color: #fdba74 !important;
}

[data-theme="dark"] .app-master-theme .color-white {
    color: inherit !important;
}

/* Bootstrap selectpicker */
[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-toggle,
[data-theme="dark"] .app-master-theme .selectpicker+.dropdown-toggle,
[data-theme="dark"] .app-master-theme .bootstrap-select .btn {
    background: #0c1625 !important;
    border-color: #2f4563 !important;
    color: #e2f4f2 !important;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu {
    background: #0e1a2e !important;
    border-color: #2a405e !important;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu .inner {
    background: #0e1a2e;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu li a,
[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu .dropdown-item {
    color: #c8daf0 !important;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu li a:hover,
[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu li.active a,
[data-theme="dark"] .app-master-theme .bootstrap-select .dropdown-menu li.selected a {
    background: rgba(178, 107, 147, 0.14) !important;
    color: #2dd4bf !important;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .bs-searchbox input {
    background: #0c1625 !important;
    border-color: #2f4563 !important;
    color: #e2f4f2 !important;
}

[data-theme="dark"] .app-master-theme .bootstrap-select .filter-option-inner-inner {
    color: #e2f4f2;
}

/* Table striping in dark mode */
[data-theme="dark"] .app-master-theme .table-striped tbody tr:nth-of-type(odd) {
    background: rgba(178, 107, 147, 0.04);
}

[data-theme="dark"] .app-master-theme .table-striped tbody tr:nth-of-type(even) {
    background: rgba(14, 22, 36, 0.5);
}

[data-theme="dark"] .app-master-theme .table-bordered {
    border-color: #1a3635;
}

[data-theme="dark"] .app-master-theme .table-bordered td,
[data-theme="dark"] .app-master-theme .table-bordered th {
    border-color: #1a3635;
}

/* Input search in all-orders */
[data-theme="dark"] .app-master-theme input.form-control::placeholder {
    color: #6b84a5;
}

/* Pagination dark enhancements */
[data-theme="dark"] .app-master-theme .pagination .page-link {
    background: #0e1a2e;
    color: #2dd4bf;
    border-color: #2a405e;
}

[data-theme="dark"] .app-master-theme .pagination .page-link:hover {
    background: #1b2d46;
    color: #a3cbf9;
    border-color: #3a5270;
}

[data-theme="dark"] .app-master-theme .pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #3b6eb8, #5a92d4);
    border-color: #5a92d4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 110, 184, 0.3);
}

[data-theme="dark"] .app-master-theme .pagination .page-item.disabled .page-link {
    background: #060e0d;
    color: #3a5270;
    border-color: #1e3048;
}

/* Loading indicator */
[data-theme="dark"] .app-master-theme .lds-cube div {
    background: #5a92d4;
}

/* Footer dark mode */
[data-theme="dark"] .app-master-theme footer,
[data-theme="dark"] footer.tw-footer {
    color: #6b84a5 !important;
}

/* Global form baseline resets for dark */
[data-theme="dark"] input:where(:not([type])),
[data-theme="dark"] input:where([type="text"]),
[data-theme="dark"] input:where([type="email"]),
[data-theme="dark"] input:where([type="number"]),
[data-theme="dark"] input:where([type="password"]),
[data-theme="dark"] input:where([type="search"]),
[data-theme="dark"] input:where([type="tel"]),
[data-theme="dark"] input:where([type="url"]),
[data-theme="dark"] input:where([type="date"]),
[data-theme="dark"] input:where([type="datetime-local"]),
[data-theme="dark"] input:where([type="month"]),
[data-theme="dark"] input:where([type="week"]),
[data-theme="dark"] input:where([type="time"]),
[data-theme="dark"] select,
[data-theme="dark"] select:where([multiple]),
[data-theme="dark"] textarea {
    background-color: #0c1625;
    border-color: #2f4563;
    color: #e2f4f2;
}

[data-theme="dark"] input:where(:not([type])):focus,
[data-theme="dark"] input:where([type="text"]):focus,
[data-theme="dark"] input:where([type="email"]):focus,
[data-theme="dark"] input:where([type="number"]):focus,
[data-theme="dark"] input:where([type="password"]):focus,
[data-theme="dark"] input:where([type="search"]):focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
    --tw-ring-color: rgba(178, 107, 147, 0.4);
    border-color: #5a92d4;
}

@media (prefers-reduced-motion: reduce) {

    .auth-card,
    .login-card,
    .auth-btn,
    .submit-btn,
    .app-master-theme .btn,
    .app-master-theme .card,
    .app-master-theme .content-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}