/* =============================================
   AUTH PAGES — Default (design azul original)
   Para todos os usuários
   ============================================= */

/* ---- Base ---- */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #F0F1F4;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

.auth-page .content-wrapper {
    position: relative;
    z-index: 1;
}

/* ---- Card (azul original) ---- */
.auth-page .card {
    position: relative;
    border-radius: 20px !important;
    background: linear-gradient(180deg, rgba(16, 88, 176, 0.85), rgba(25, 105, 209, 0.80), rgba(50, 169, 224, 0.75)) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none !important;
    box-shadow: 0 8px 32px rgba(16, 88, 176, 0.25),
                0 2px 8px rgba(0, 0, 0, 0.08) !important;
    animation: authCardEntry 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes authCardEntry {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Logo ---- */
.auth-page .logo-container {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.auth-page .logo-container img {
    max-height: 50px;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

/* ---- Typography ---- */
.auth-page .text-gray-900,
.auth-page .card h1,
.auth-page .card .h5 {
    color: #ffffff !important;
}

.auth-page .login-subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.auth-page .text-muted {
    color: rgba(255, 255, 255, 0.50) !important;
}

.auth-page label,
.auth-page .form-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* ---- Form Controls ---- */
.auth-page .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.auth-page .form-control::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.auth-page .form-control:focus {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12),
                0 0 15px rgba(255, 255, 255, 0.05) !important;
    outline: none;
}

.auth-page .form-control.is-invalid {
    border-color: #e74a5a !important;
}

.auth-page .invalid-feedback {
    color: #ff8a95;
}

.auth-page .errorlist {
    color: #ff8a95;
    list-style: none;
    padding: 0;
    font-size: 0.85rem;
}

/* ---- Buttons ---- */
.auth-page .btn-primary {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #4ef291 0%, #34d399 100%) !important;
    border: none !important;
    color: #1a1a1a !important;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 2px 8px rgba(78, 242, 145, 0.25);
}

.auth-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 242, 145, 0.35) !important;
    background: linear-gradient(135deg, #5ff79d 0%, #3edba5 100%) !important;
    color: #1a1a1a !important;
}

.auth-page .btn-primary:active {
    transform: translateY(0);
}

.auth-page .btn-danger {
    border-radius: 20px !important;
    background: rgba(231, 74, 90, 0.8) !important;
    border: 1px solid rgba(231, 74, 90, 0.4) !important;
    color: #ffffff !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.auth-page .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(231, 74, 90, 0.4) !important;
}

/* ---- Password toggle ---- */
.auth-page .form-group .btn-light {
    box-shadow: none;
    background: none !important;
    border: none !important;
}

.auth-page .btn-light i {
    color: rgba(255, 255, 255, 0.35) !important;
    transition: color 0.2s;
}

.auth-page .btn-light:hover i {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* ---- Alerts ---- */
.auth-page .alert-danger {
    background: rgba(231, 74, 90, 0.15) !important;
    border: 1px solid rgba(231, 74, 90, 0.3) !important;
    border-radius: 12px;
    color: #ff8a95 !important;
}

.auth-page .alert-danger ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.auth-page .alert-success {
    background: rgba(78, 242, 145, 0.12) !important;
    border: 1px solid rgba(78, 242, 145, 0.25) !important;
    border-radius: 12px;
    color: #4EF291 !important;
}

.auth-page .alert-warning-custom {
    background: rgba(255, 193, 7, 0.12) !important;
    border: 1px solid rgba(255, 193, 7, 0.25) !important;
    border-radius: 12px;
    color: #ffd966 !important;
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
}

/* ---- Links ---- */
.auth-page .small,
.auth-page a.small {
    color: rgba(255, 255, 255, 0.45) !important;
    transition: color 0.2s;
}

.auth-page a.small:hover {
    color: #ffffff !important;
    text-decoration: none;
}

/* ---- Footer ---- */
.auth-page .login-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.22);
    font-size: 0.75rem;
}

.auth-page .small-footer {
    text-align: center;
    margin-top: 0.75rem;
    color: #8a8f99;
    font-size: 0.7rem;
}

/* ---- Theme toggle ---- */
.auth-page .theme-toggle {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity 0.25s, transform 0.25s;
    padding: 2px;
    line-height: 1;
}

.auth-page .theme-toggle:hover {
    opacity: 1;
    transform: scale(1.18);
}

/* ---- hCaptcha ---- */
.auth-page .h-captcha {
    width: 100%;
    min-height: 78px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-page .h-captcha iframe {
    border-radius: 14px !important;
    opacity: 0.85;
    filter: brightness(0.95) saturate(0.5);
    transition: opacity 0.3s, filter 0.3s;
}

.auth-page .h-captcha:hover iframe {
    opacity: 1;
    filter: brightness(1) saturate(0.7);
}

/* ---- 2FA specifics ---- */
.auth-page .step-text {
    color: rgba(255, 255, 255, 0.60);
    font-size: 0.82rem;
    line-height: 1.5;
}

.auth-page .step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 6px;
}

.auth-page .qr-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.auth-page .qr-container img {
    border-radius: 12px;
    background: #fff;
    padding: 8px;
}

.auth-page .icon-lock {
    font-size: 2rem;
    color: #ffffff;
    opacity: 0.7;
}

.auth-page .icon-check {
    font-size: 2.5rem;
    color: #4EF291;
}

.auth-page .backup-link {
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.2s;
    border: none;
    background: none;
    text-decoration: underline;
}

.auth-page .backup-link:hover {
    color: rgba(255, 255, 255, 0.75);
}

.auth-page .backup-hint {
    display: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.auth-page .backup-codes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 1rem 0;
}

.auth-page .backup-code {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

/* ---- 2FA prompt modal ---- */
.auth-page .modal-2fa-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: authFadeIn 0.3s ease;
}

.auth-page .modal-2fa-card {
    max-width: 400px;
    width: 90%;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 88, 176, 0.90), rgba(25, 105, 209, 0.85));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    animation: authCardEntry 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    text-align: center;
    padding: 2rem 1.5rem;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ---- Mobile ---- */
@media (max-width: 575.98px) {
    .auth-page .content-wrapper,
    .auth-page .container,
    .auth-page .row,
    .auth-page .row > [class*="col"] {
        max-width: 100vw !important;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    .auth-page .card {
        max-width: 100% !important;
        overflow: hidden;
    }
    .auth-page .card-body {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    .auth-page .h-captcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

/* ==============================================
   DARK THEME (default — azul escuro)
   ============================================== */
html[data-theme="dark"] body.auth-page {
    background: #1a1a2e;
}

html[data-theme="dark"] .auth-page .card {
    background: linear-gradient(180deg, rgba(10, 50, 120, 0.90), rgba(16, 70, 150, 0.85), rgba(25, 100, 190, 0.80)) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.50),
                0 2px 8px rgba(0, 0, 0, 0.20) !important;
}

html[data-theme="dark"] body.auth-page .modal-2fa-card {
    background: linear-gradient(180deg, rgba(10, 50, 120, 0.95), rgba(16, 70, 150, 0.90));
}


/* =============================================
   REBRANDING — Tegge Design System (staff only)
   Ativado por html.rebranding via localStorage
   Para ativar: descomentar ou manter como está
   ============================================= */

/* ---- Base tegge ---- */
html.rebranding body.auth-page {
    font-family: 'Varela Round', 'Roboto', "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: linear-gradient(160deg, #e8e8e8 0%, #f4f3f3 40%, #eef0ec 100%);
    overflow: hidden;
}

html.rebranding .auth-page .content-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ---- Grid lines background ---- */
.auth-grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    display: none;
}
.auth-grid::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image:
        linear-gradient(rgba(78,242,145,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78,242,145,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: authGridDrift 20s linear infinite;
}
.auth-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10,10,10,0.9) 80%);
}

.auth-grid-scan {
    position: fixed;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(78,242,145,0.15), transparent);
    top: 0;
    left: 0;
    pointer-events: none;
    display: none;
    animation: authGridScan 8s ease-in-out infinite;
}

.auth-grid-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(78,242,145,0.08) 0%, transparent 60%);
    pointer-events: none;
    display: none;
    animation: authGlowPulse 6s ease-in-out infinite;
}

html.rebranding .auth-grid,
html.rebranding .auth-grid-scan,
html.rebranding .auth-grid-glow {
    display: block;
}

@keyframes authGridDrift {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}
@keyframes authGridScan {
    0%   { top: 0; opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}
@keyframes authGlowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.6; }
}

/* Light grid */
html.rebranding .auth-grid::before {
    background-image:
        linear-gradient(rgba(78,242,145,0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78,242,145,0.18) 1px, transparent 1px);
}
html.rebranding .auth-grid::after {
    background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(238,237,236,0.75) 75%);
}
html.rebranding .auth-grid-scan {
    background: linear-gradient(90deg, transparent, rgba(78,242,145,0.22), transparent);
}
html.rebranding .auth-grid-glow {
    background: radial-gradient(circle, rgba(78,242,145,0.12) 0%, transparent 60%);
}

/* Dark grid */
html.rebranding[data-theme="dark"] .auth-grid::before {
    background-image:
        linear-gradient(rgba(78,242,145,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(78,242,145,0.06) 1px, transparent 1px);
}
html.rebranding[data-theme="dark"] .auth-grid::after {
    background: radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(10,10,10,0.9) 80%);
}
html.rebranding[data-theme="dark"] .auth-grid-scan {
    background: linear-gradient(90deg, transparent, rgba(78,242,145,0.15), transparent);
}
html.rebranding[data-theme="dark"] .auth-grid-glow {
    background: radial-gradient(circle, rgba(78,242,145,0.08) 0%, transparent 60%);
}

/* ---- Logo external (fora do card) ---- */
html.rebranding .auth-logo-wrap {
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

html.rebranding .auth-logo {
    max-height: 96px;
    width: auto;
}

/* Light mode: logo escura; dark mode: logo branca com verde */
html.rebranding .auth-logo-dark-theme {
    display: none;
}

html.rebranding[data-theme="dark"] .auth-logo-light-theme {
    display: none;
}

html.rebranding[data-theme="dark"] .auth-logo-dark-theme {
    display: block;
    margin: 0 auto;
}

/* ---- Card tegge (clean) ---- */
html.rebranding .auth-page .card {
    border-radius: 12px !important;
    background: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #e2e2e2 !important;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07),
                0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html.rebranding .auth-page .text-gray-900,
html.rebranding .auth-page .card h1,
html.rebranding .auth-page .card .h5 {
    font-family: 'Varela Round', sans-serif !important;
    color: #1a1a1a !important;
}

html.rebranding .auth-page .login-subtitle {
    color: #6b7280;
}

html.rebranding .auth-page label,
html.rebranding .auth-page .form-label {
    color: #6b7280;
}

html.rebranding .auth-page .login-footer {
    border-top: 1px solid #f0f0f0;
    color: #9ca3af;
}

html.rebranding .auth-page .small,
html.rebranding .auth-page a.small {
    color: #6b7280 !important;
}

html.rebranding .auth-page .theme-toggle {
    color: #9ca3af;
}

html.rebranding .auth-page .logo-container img {
    filter: none;
}

html.rebranding .auth-page .btn-light i {
    color: #9ca3af !important;
}

html.rebranding .auth-page .btn-light:hover i {
    color: #1a1a1a !important;
}

/* ---- Input group estilo admin ---- */
html.rebranding .auth-page .auth-input-group {
    border: 1px solid #d1d5db;
    border-radius: 6px !important;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

html.rebranding .auth-page .auth-input-group:focus-within {
    border-color: #4ef291;
    box-shadow: 0 0 0 3px rgba(78, 242, 145, 0.15);
}

html.rebranding .auth-page .auth-input-group .form-control {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html.rebranding .auth-page .auth-input-group .input-group-text {
    background: #ffffff;
    border: none;
    color: #9ca3af;
    padding: 0 0.85rem;
}

html.rebranding .auth-page .auth-input-group .btn-eye {
    background: #ffffff;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 0.85rem;
    transition: color 0.2s;
    outline: none;
}

html.rebranding .auth-page .auth-input-group .btn-eye:hover {
    color: #1a1a1a;
}

/* ---- Form Controls tegge ---- */
html.rebranding .auth-page .form-control {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #1a1a1a !important;
    font-family: 'Varela Round', sans-serif !important;
    padding: 0.6rem 0.9rem;
}

html.rebranding .auth-page .form-control::placeholder {
    color: #9ca3af;
}

html.rebranding .auth-page .form-control:focus {
    background: #ffffff !important;
    border-color: #4ef291 !important;
    box-shadow: none !important;
}

/* ---- Button danger tegge ---- */
html.rebranding .auth-page .btn-danger {
    border-radius: 6px !important;
    background: #dc2626 !important;
    border: none !important;
    color: #ffffff !important;
    font-family: 'Varela Round', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
    box-shadow: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

html.rebranding .auth-page .btn-danger:hover {
    background: #b91c1c !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25) !important;
    transform: translateY(-1px);
}

/* ---- Button tegge (preto) ---- */
html.rebranding .auth-page .btn-primary {
    border-radius: 6px !important;
    background: #111111 !important;
    color: #ffffff !important;
    font-family: 'Varela Round', sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.82rem;
    padding: 0.7rem 1rem;
    box-shadow: none !important;
}

html.rebranding .auth-page .btn-primary:hover {
    background: #2a2a2a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18) !important;
    transform: translateY(-1px);
}

/* ---- Links tegge ---- */
html.rebranding .auth-page a.small:hover {
    color: #1a1a1a !important;
}

/* ---- Step number tegge ---- */
html.rebranding .auth-page .step-number {
    background: #f0f0f0;
    color: #1a1a1a;
}

/* ---- Icon tegge ---- */
html.rebranding .auth-page .icon-lock {
    color: #1a1a1a;
}

/* ---- 2FA misc tegge ---- */
html.rebranding .auth-page .step-text {
    color: #6b7280;
}

html.rebranding .auth-page .backup-link {
    color: #9ca3af;
}

html.rebranding .auth-page .backup-link:hover {
    color: #1a1a1a;
}

html.rebranding .auth-page .backup-hint {
    color: #6b7280;
}

html.rebranding .auth-page .backup-code {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1a1a1a;
}

/* ---- hCaptcha tegge (light) ---- */
html.rebranding .auth-page .h-captcha iframe {
    filter: none;
    opacity: 1;
}

/* ---- 2FA modal tegge ---- */
html.rebranding .auth-page .modal-2fa-card {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06);
}

html.rebranding .auth-page .modal-2fa-card h5 {
    color: #1a1a1a !important;
}

html.rebranding .auth-page .modal-2fa-card p {
    color: #6b7280 !important;
}

html.rebranding .auth-page .modal-2fa-card .fa-shield-halved {
    color: #1a1a1a !important;
}

html.rebranding .auth-page .modal-2fa-card a[href*="2fa_skip"] {
    background: #f9fafb !important;
    color: #6b7280 !important;
    border: 1px solid #e5e7eb !important;
}

/* ---- Dark tegge ---- */
html.rebranding[data-theme="dark"] body.auth-page {
    background: linear-gradient(160deg, #050805 0%, #0a0a0a 40%, #080b08 100%);
}

html.rebranding[data-theme="dark"] .auth-page .card {
    background: #1a1a1a !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 12px !important;
    border: 1px solid #2a2a2a !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.40),
                0 1px 4px rgba(0, 0, 0, 0.20) !important;
}

html.rebranding[data-theme="dark"] .auth-page .text-gray-900,
html.rebranding[data-theme="dark"] .auth-page .card h1,
html.rebranding[data-theme="dark"] .auth-page .card .h5 {
    color: #f9fafb !important;
}

html.rebranding[data-theme="dark"] .auth-page .login-subtitle,
html.rebranding[data-theme="dark"] .auth-page label,
html.rebranding[data-theme="dark"] .auth-page .form-label {
    color: #9ca3af;
}

html.rebranding[data-theme="dark"] .auth-page .auth-input-group {
    border-color: #2e2e2e;
}

html.rebranding[data-theme="dark"] .auth-page .auth-input-group:focus-within {
    border-color: #4ef291;
    box-shadow: 0 0 0 3px rgba(78, 242, 145, 0.12);
}

html.rebranding[data-theme="dark"] .auth-page .auth-input-group .input-group-text,
html.rebranding[data-theme="dark"] .auth-page .auth-input-group .btn-eye {
    background: #111111;
    color: #6b7280;
}

html.rebranding[data-theme="dark"] .auth-page .auth-input-group .btn-eye:hover {
    color: #f9fafb;
}

html.rebranding[data-theme="dark"] body.auth-page .form-control {
    background: #111111 !important;
    border: none !important;
    border-radius: 0 !important;
    color: #f9fafb !important;
}

html.rebranding[data-theme="dark"] .auth-page .auth-input-group {
    border-radius: 6px !important;
}

html.rebranding[data-theme="dark"] body.auth-page .form-control::placeholder {
    color: #6b7280;
}

html.rebranding[data-theme="dark"] body.auth-page .form-control:focus {
    background: #1a1a1a !important;
    border-color: #4ef291 !important;
    box-shadow: none !important;
}

html.rebranding[data-theme="dark"] body.auth-page .btn-primary {
    background: #f9fafb !important;
    color: #111111 !important;
    box-shadow: none !important;
}

html.rebranding[data-theme="dark"] body.auth-page .btn-primary:hover {
    background: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.10) !important;
}

html.rebranding[data-theme="dark"] .auth-page .btn-light i {
    color: #6b7280 !important;
}

html.rebranding[data-theme="dark"] .auth-page .btn-light:hover i {
    color: #f9fafb !important;
}

html.rebranding[data-theme="dark"] .auth-page .small,
html.rebranding[data-theme="dark"] .auth-page a.small {
    color: #9ca3af !important;
}

html.rebranding[data-theme="dark"] .auth-page a.small:hover {
    color: #f9fafb !important;
}

html.rebranding[data-theme="dark"] .auth-page .login-footer {
    border-top: 1px solid #2a2a2a;
    color: #6b7280;
}

html.rebranding[data-theme="dark"] .auth-page .theme-toggle {
    color: #6b7280;
}

html.rebranding[data-theme="dark"] .auth-page .step-number {
    background: #2a2a2a;
    color: #f9fafb;
}

html.rebranding[data-theme="dark"] .auth-page .step-text {
    color: #9ca3af;
}

html.rebranding[data-theme="dark"] .auth-page .backup-code {
    background: #111111;
    border: 1px solid #2e2e2e;
    color: #f9fafb;
}

html.rebranding[data-theme="dark"] .auth-page .backup-link {
    color: #6b7280;
}

html.rebranding[data-theme="dark"] .auth-page .backup-link:hover {
    color: #f9fafb;
}

html.rebranding[data-theme="dark"] .auth-page .backup-hint {
    color: #9ca3af;
}

html.rebranding[data-theme="dark"] body.auth-page .modal-2fa-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.60);
}

html.rebranding[data-theme="dark"] .auth-page .modal-2fa-card h5 {
    color: #f9fafb !important;
}

html.rebranding[data-theme="dark"] .auth-page .modal-2fa-card p {
    color: #9ca3af !important;
}

html.rebranding[data-theme="dark"] .auth-page .modal-2fa-card .fa-shield-halved {
    color: #9ca3af !important;
}

html.rebranding[data-theme="dark"] .auth-page .modal-2fa-card a[href*="2fa_skip"] {
    background: #252525 !important;
    color: #9ca3af !important;
    border: 1px solid #333333 !important;
}

html.rebranding[data-theme="dark"] body.auth-page .h-captcha iframe {
    opacity: 1;
    filter: brightness(0.80) saturate(0.35);
    border-radius: 14px !important;
    border: 0 !important;
    outline: 2px solid #222 !important;
    outline-offset: -2px;
}
