/* ==========================================================================
   AUTENTICAÇÃO — YETUEXPRESS  (auth.css)
   ========================================================================== */

/* ?? Slideshow fixo ?? */
.auth-slideshow {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-color: #000000 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.auth-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.8s ease-in-out;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.auth-slideshow .slide.active { opacity: 1; }

/* Overlay escuro — Vinheta radial: centro 100% nítido sem blur e contorno/bordas bem pretas */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(
        ellipse 75% 70% at 50% 50%,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.00) 20%,
        rgba(0, 0, 0, 0.40) 45%,
        rgba(0, 0, 0, 0.82) 65%,
        rgba(0, 0, 0, 0.98) 82%,
        #000000 95%,
        #000000 100%
    ) !important;
    pointer-events: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* ➔➔ Corpo ➔➔ */
html, body.fullscreen-auth {
    height: 100%;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

/* ?? Layout principal: dois painéis ?? */
.auth-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

/* ????????????????????????????????????????
   PAINEL ESQUERDO — Texto / Branding
   ???????????????????????????????????????? */
.auth-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4rem 3rem 4rem 6rem;
    position: relative;
    min-height: calc(100vh - 80px);
}

/* Linha vertical decorativa */
.auth-left::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 122, 0, 0.20),
        transparent
    );
}

/* Header branding row with logo and NOVO pill */
.auth-left-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2.2rem;
}

.auth-left-logo {
    display: inline-block;
    transition: transform 0.3s ease;
}

.auth-left-logo:hover { transform: scale(1.02); }

.auth-left-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.auth-logo img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

/* NOVO Tag pill badge */
.auth-left-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    animation: pulse-glow 2.5s infinite alternate;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 4px 10px rgba(16, 185, 129, 0.15); }
    100% { box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
}

.auth-left-tag-pill i {
    width: 11px;
    height: 11px;
}

.auth-left h1 {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 2.5rem;
}

/* Feature checklist styling */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

.auth-feature-icon i,
.auth-feature-icon svg,
.auth-feature-icon [data-lucide] {
    width: 18px;
    height: 18px;
    color: var(--primary-color, #ff7a00) !important;
    stroke: var(--primary-color, #ff7a00) !important;
}

.auth-feature-text h3 {
    font-size: 1.0rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.2rem 0;
}

.auth-feature-text p {
    font-size: 0.85rem;
    color: rgba(160, 174, 192, 0.85);
    line-height: 1.45;
    margin: 0;
}

/* Card de Suporte ao cliente bottom left — fundo preto sólido no dark */
.auth-support-card {
    display: flex;
    align-items: flex-start;
    gap: 1.0rem;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: 3rem;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.auth-support-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6) !important;
}

.auth-support-icon i,
.auth-support-icon svg,
.auth-support-icon [data-lucide] {
    width: 16px;
    height: 16px;
    color: var(--primary-color, #ff7a00) !important;
    stroke: var(--primary-color, #ff7a00) !important;
}

.auth-support-content h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem 0;
}

.auth-support-content p {
    font-size: 0.78rem;
    color: rgba(160, 174, 192, 0.75);
    line-height: 1.4;
    margin: 0 0 0.75rem 0;
}

.auth-support-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s, gap 0.2s;
}

.auth-support-link:hover {
    color: #ff9a00;
    gap: 7px;
}

.auth-support-link i {
    width: 12px;
    height: 12px;
}

/* ????????????????????????????????????????
   PAINEL DIREITO — Formulário
   ???????????????????????????????????????? */
.auth-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding: 3rem 3.625rem 3rem 2rem;
    min-height: calc(100vh - 80px);
}

/* Caixa do formulário — Fundo preto sólido no dark com sombra profunda */
.auth-box.glass-card {
    width: 100%;
    max-width: 410px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(0, 0, 0, 0.8) !important;
    animation: auth-appear 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes auth-appear {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo apenas mobile */
.auth-header {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-section-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.1rem;
    letter-spacing: -0.02em;
}

.auth-section-subtitle {
    color: rgba(160, 174, 192, 0.80);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.95rem;
}

/* Abas */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0.2rem;
    margin-bottom: 0.95rem;
    gap: 0.2rem;
}

.auth-tab {
    flex: 1;
    padding: 0.55rem;
    text-align: center;
    cursor: pointer;
    border-radius: 9px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    transition: all 0.28s ease;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.auth-tab i, .auth-tab svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.auth-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #ff9a00);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.35);
}

.auth-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff !important;
}

/* Formulário */
.auth-form { display: none !important; }
.auth-form.active,
#form-login.active,
#form-register.active {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: form-fade 0.32s ease both;
}

@keyframes form-fade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-group { margin-bottom: 0.75rem; }

.form-group label {
    display: block;
    font-size: 0.70rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.label-row label {
    margin-bottom: 0;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 12px;
    transition: all 0.28s ease;
    overflow: hidden;
}

.input-box:focus-within {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px rgba(255, 122, 0, 0.1);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 100%;
    min-height: 42px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.input-box:focus-within .input-icon {
    background: rgba(255, 122, 0, 0.04);
    border-right-color: rgba(255, 122, 0, 0.15);
}

.input-icon i {
    width: 15px;
    height: 15px;
    color: var(--primary-color);
    transition: transform 0.25s ease;
}

.input-box:focus-within .input-icon i {
    transform: scale(1.08);
}

.form-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-size: 0.88rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    outline: none;
    min-width: 0;
    -webkit-appearance: none;
    border-radius: 0;
}

/* Previne zoom automático e distorções de renderização no iOS Safari (iPhone) */
@media screen and (max-width: 768px) {
    .form-input {
        font-size: 16px !important;
    }
}

.form-input::placeholder {
    color: rgba(160, 174, 192, 0.35);
}

.btn-eye {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 100%;
    min-height: 42px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(160, 174, 192, 0.5);
    cursor: pointer;
    padding: 0 8px;
    transition: all 0.22s ease;
    outline: none;
}

.btn-eye:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.03);
}

.btn-eye.btn-eye--visible {
    color: var(--primary-color);
}

/* Link esqueceu senha */
.auth-forgot {
    font-size: 0.70rem;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-forgot:hover { color: var(--primary-color) !important; text-decoration: underline; }

/* Custom Checkbox styles */
.form-group-options {
    margin: 1.0rem 0;
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    font-size: 0.80rem;
    color: #ffffff !important;
    user-select: none;
    font-weight: 500;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 17px;
    width: 17px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(255, 122, 0, 0.25);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    line-height: 1;
}

/* Botão principal */
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    margin-top: 0.2rem;
    font-size: 0.90rem;
    letter-spacing: 0.03em;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff9a00 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.28);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.42);
}

.btn-full:active { transform: translateY(0); }

/* Botão "Voltar" passo */
.btn-back-step {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(160, 174, 192, 0.75);
    padding: 0.65rem;
    border-radius: 12px;
    font-size: 0.82rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
    justify-content: center;
    margin-top: 0.6rem;
}

.btn-back-step:hover {
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

/* Indicador de passos */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1.2rem;
}

.step-indicator-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff !important;
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.step-dot.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.35);
}

.step-dot.done {
    border-color: rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.12);
    color: #ffffff !important;
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
    max-width: 60px;
    transition: background 0.4s ease;
}

.step-line.done {
    background: linear-gradient(90deg, var(--primary-color), rgba(255, 154, 0, 0.5));
}

/* Passo do registo */
.reg-step { display: none; }
.reg-step.active {
    display: block;
    animation: form-fade 0.3s ease both;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.1rem;
    font-size: 0.80rem;
    color: rgba(160, 174, 192, 0.7);
}

.auth-footer-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-link a:hover {
    color: #ff9a00;
    text-decoration: underline;
}

/* Link voltar ao início */
.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.9rem;
    color: rgba(160, 174, 192, 0.5);
    font-size: 0.78rem;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-back-link:hover { color: var(--primary-color); }
.auth-back-link i { width: 12px; height: 12px; }

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.9rem 0;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    background: transparent !important;
    background-color: transparent !important;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
    padding: 0 .75em;
    background: transparent !important;
    background-color: transparent !important;
}

.btn-google {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
    width: 100% !important;
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google:active {
    transform: translateY(0);
}

.google-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
/* Logo Google — sempre laranja, em qualquer tema */
.google-icon path {
    fill: #ff7a00 !important;
}
/* Estado normal — laranja via filtro CSS */
.google-icon {
    filter: brightness(0) saturate(100%)
            invert(48%) sepia(90%) saturate(1500%)
            hue-rotate(2deg) brightness(105%) contrast(102%);
    transition: filter 0.25s ease;
}
/* Hover — logo fica branca (reset do filtro para branco) */
.btn-google:hover .google-icon {
    filter: brightness(0) invert(1);
}
/* Hover no botão Google: fundo laranja, texto e ícone brancos (dark mode) */
.btn-google:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a00 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.32);
    transform: translateY(-1px);
}

/* Badges de segurança e rodapé */
.auth-footer {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    padding: 1.8rem 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.auth-footer-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(160, 174, 192, 0.6);
    font-size: 0.78rem;
    font-weight: 500;
}

.auth-footer-badge i {
    width: 14px;
    height: 14px;
    color: var(--primary-color);
}

/* ????????????????????????????????????????
   RESPONSIVO — MOBILE
   ???????????????????????????????????????? */
@media (max-width: 768px) {
    html, body.fullscreen-auth { overflow-y: auto; }

    .auth-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: 100vh;
    }

    /* Esconder painel esquerdo, rodapé e link de voltar no mobile */
    .auth-left,
    .auth-footer,
    .auth-back-link { 
        display: none !important; 
    }

    .auth-right {
        padding: 2rem 1.2rem;
        min-height: 100vh;
        justify-content: center;
        width: 100%;
        align-items: center;
        display: flex;
    }

    /* Mostrar logo no header (mobile only) */
    .auth-header { display: block; }

    .auth-box.glass-card {
        max-width: 100%;
        padding: 1.8rem 1.2rem;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Force static background image hero_opt.jpg */
html {
    background-image: radial-gradient(circle at center, rgba(8, 10, 15, 0.25) 0%, rgba(8, 10, 15, 0.45) 100%), url('../assets/hero_opt.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}
.slideshow-container, .auth-slideshow {
    background: transparent !important;
}
.slideshow-container .slide, .auth-slideshow .slide {
    display: none !important;
}

/* ??? GLOBAL REFACTOR: FORCE NEW PREMIUM TRANS-GLASS BUTTON STYLE ??????????? */
.btn-glass,
.btn-full,
.btn-back-step,
button[type="submit"],
.btn,
.btn-primary {
    background: rgba(255, 255, 255, 0.05) !important;
    background-image: none !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    padding: 15px 32px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    position: relative !important;
    overflow: hidden !important;
    transition: border-color 0.4s ease, color 0.4s ease !important;
    isolation: isolate !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transform: none;
    width: auto;
}

.btn-glass.btn-full,
.btn-full { width: 100% !important; }

/* Disable conflicting pseudo-elements */
.btn-glass::after,
.btn-full::after,
.btn-back-step::after,
.btn-google::after,
button[type="submit"]::after,
.btn::after,
.btn-primary::after {
    display: none !important;
    content: none !important;
}

/* Orange ink hover expansion */
.btn-glass,
.btn-full,
.btn-back-step,
.btn-google,
button[type="submit"],
.btn,
.btn-primary {
    position: relative !important;
    overflow: hidden !important;
}

.btn-glass::before,
.btn-full::before,
.btn-back-step::before,
.btn-google::before,
button[type="submit"]::before,
.btn::before,
.btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: #FF6B00 !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.6s ease, height 0.6s ease !important;
    z-index: -1 !important;
    box-shadow: none !important;
    background-image: none !important;
}

.btn-glass:hover,
.btn-full:hover,
.btn-back-step:hover,
.btn-google:hover,
button[type="submit"]:hover,
.btn:hover,
.btn-primary:hover {
    border-color: #FF6B00 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    background-image: none !important;
    transform: none !important;
}

.btn-glass:hover::before,
.btn-full:hover::before,
.btn-back-step:hover::before,
.btn-google:hover::before,
button[type="submit"]:hover::before,
.btn:hover::before,
.btn-primary:hover::before {
    width: 1200px !important; height: 1200px !important;
}

.btn-glass:active,
.btn-full:active,
.btn-back-step:active,
.btn-google:active,
button[type="submit"]:active,
.btn:active,
.btn-primary:active {
    transform: scale(0.98) !important;
    box-shadow: none !important;
}

.btn-glass span, .btn-glass i, .btn-glass svg,
.btn-full span, .btn-full i, .btn-full svg,
.btn-back-step span, .btn-back-step i, .btn-back-step svg,
.btn-google span, .btn-google i, .btn-google svg,
button[type="submit"] span, button[type="submit"] i, button[type="submit"] svg,
.btn span, .btn i, .btn svg,
.btn-primary span, .btn-primary i, .btn-primary svg {
    color: #FFFFFF !important;
    fill: transparent !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: none !important;
}

/* btn-google keeps its SVG logo visible */
.btn-google svg {
    fill: none !important;
    stroke: currentColor !important;
}

/* ??? ICONS STAY WHITE ON HOVER ??? */
.btn-glass:hover span, .btn-glass:hover i, .btn-glass:hover svg,
.btn-full:hover span, .btn-full:hover i, .btn-full:hover svg,
.btn-back-step:hover span, .btn-back-step:hover i, .btn-back-step:hover svg,
.btn:hover span, .btn:hover i, .btn:hover svg,
.btn-primary:hover span, .btn-primary:hover i, .btn-primary:hover svg,
button[type="submit"]:hover span, button[type="submit"]:hover i, button[type="submit"]:hover svg {
    color: #FFFFFF !important;
    fill: transparent !important;
    position: relative !important;
    z-index: 2 !important;
    text-shadow: none !important;
}

/* ======================================================================
   GLOBAL: ALL ICONS WHITE
   Covers: Lucide SVGs (.lucide), <i> elements, nav/sidebar SVGs,
           inline SVGs used as icons in buttons, cards and lists.
   !important overrides inline style="color:var(--primary-color)"
   ====================================================================== */

/* Lucide icons (rendered by lucide.createIcons()) */
svg.lucide,
.lucide {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Font/CSS icon elements */
i,
i[data-lucide] {
    color: #FFFFFF !important;
}

/* Raw inline SVGs used as UI icons inside interactive / layout elements */
nav svg,
header svg,
.nav-item svg,
.nav-link svg,
.sidebar-link svg,
.sidebar-nav svg,
.sidebar-icon svg,
.menu-icon svg,
.stat-icon svg,
.stat-card svg,
.info-item svg,
.route-icon svg,
.ticket-icon svg,
.feature-icon svg,
.feature-icon i,
.hero-feature-icon svg,
.hero-feature-icon i,
.step-icon svg,
.step-icon i,
.faq-icon svg,
.faq-icon i,
.card-action svg,
.table-actions svg,
.section-icon svg,
.modal-header svg,
.alert-icon svg,
.empty-state svg,
.search-icon svg,
.input-icon svg,
.select-icon svg,
.calendar-icon svg,
.notification-icon svg,
.profile-icon svg,
.logo-icon svg {
    color: #FFFFFF !important;
    stroke: #FFFFFF !important;
}

/* Ensure button/link icon children inherit white */
button i, button svg.lucide, a i, a svg.lucide,
button [data-lucide], a [data-lucide] {
    color: #FFFFFF !important;
}

/* ======================================================================
   MOBILE OPTIMIZATION: PORTRAIT HERO BACKGROUND IMAGE
   Applied on screens up to 767px wide. Uses the cropped portrait version.
   ====================================================================== */
@media (max-width: 767px) {
    html {
        background-image: none !important;
        background-color: #0B1120 !important;
    }
    body::before {
        content: "" !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: -1000 !important;
        background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.20) 100%), url('../assets/hero_mobile_opt.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        pointer-events: none !important;
    }
}

/* ==========================================================================
   AUTH PAGE — BOTÃO TOGGLE TEMA
   ========================================================================== */
.auth-theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.auth-theme-toggle:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 10px 28px rgba(255, 122, 0, 0.35);
}

.auth-theme-toggle svg {
    transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

.auth-theme-toggle:hover svg {
    transform: rotate(20deg);
}

/* ==========================================================================
   DARK THEME — imagem no centro 100% limpa sem blur, contorno bem escuro/preto
   ========================================================================== */
body.fullscreen-auth.auth-dark-theme .auth-overlay {
    background: radial-gradient(
        ellipse 75% 70% at 50% 50%,
        rgba(0, 0, 0, 0.00) 0%,
        rgba(0, 0, 0, 0.00) 20%,
        rgba(0, 0, 0, 0.40) 45%,
        rgba(0, 0, 0, 0.82) 65%,
        rgba(0, 0, 0, 0.98) 82%,
        #000000 95%,
        #000000 100%
    ) !important;
    pointer-events: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    filter: none !important;
}

body.fullscreen-auth.auth-dark-theme .auth-theme-toggle {
    background: rgba(18, 18, 22, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

/* Card do formulário — dark com fundo preto sólido */
body.fullscreen-auth.auth-dark-theme .auth-box.glass-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.95),
        0 0 0 1px rgba(0, 0, 0, 0.8) !important;
}

body.fullscreen-auth.auth-dark-theme .auth-support-card {
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
}

/* ==========================================================================
   LIGHT (WHITE) THEME — imagem no centro limpa, vinheta só nas bordas
   Paleta: tons castanhos quentes em vez de preto
   ========================================================================== */

/*
   Variáveis castanhas para referência:
   --brown-deep:   #3b1f0e   (castanho escuro — títulos principais)
   --brown-dark:   #5c3317   (castanho médio-escuro — textos secundários)
   --brown-mid:    #7a4a2a   (castanho médio — labels, links)
   --brown-warm:   #9c6540   (castanho quente — placeholders, muted)
   --brown-light:  #c8956a   (castanho claro — bordas, separadores)
   --cream:        #fdf6ee   (creme — fundos de cards)
*/

/* OVERLAY: vinheta radial — centro LIMPO e luminoso, sombra creme só nas bordas */
body.fullscreen-auth.auth-light-theme .auth-overlay {
    background: radial-gradient(
        ellipse at center,
        rgba(255, 255, 255, 0.00) 0%,
        rgba(255, 252, 245, 0.00) 45%,
        rgba(253, 246, 230, 0.22) 68%,
        rgba(245, 232, 210, 0.52) 84%,
        rgba(230, 215, 190, 0.72) 100%
    ) !important;
}

body.fullscreen-auth.auth-light-theme .auth-theme-toggle {
    background: rgba(253, 246, 238, 0.90);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(92, 51, 23, 0.18);
    color: #5c3317;
    box-shadow: 0 6px 20px rgba(59, 31, 14, 0.15);
}

/* Linha decorativa lateral — light */
body.fullscreen-auth.auth-light-theme .auth-left::after {
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 122, 0, 0.40),
        transparent
    );
}

/* Textos painel esquerdo — BRANCOS no light mode (imagem no fundo garante contraste) */
body.fullscreen-auth.auth-light-theme .auth-features h2 {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(60, 30, 10, 0.55);
}

body.fullscreen-auth.auth-light-theme .auth-left h1 {
    color: #ffffff !important;
    text-shadow: 0 1px 6px rgba(60, 30, 10, 0.55);
}

body.fullscreen-auth.auth-light-theme .auth-left > p,
body.fullscreen-auth.auth-light-theme .auth-features > p {
    color: rgba(255, 255, 255, 0.88) !important;
    text-shadow: 0 1px 4px rgba(40, 20, 5, 0.50);
}

body.fullscreen-auth.auth-light-theme .auth-feature-text h3 {
    color: #ffffff !important;
    text-shadow: 0 1px 5px rgba(50, 25, 8, 0.50);
}

body.fullscreen-auth.auth-light-theme .auth-feature-text p {
    color: rgba(255, 255, 255, 0.82) !important;
    text-shadow: 0 1px 3px rgba(40, 20, 5, 0.45);
}

body.fullscreen-auth.auth-light-theme .auth-feature-icon {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

/* Ícones do painel esquerdo — todos laranja */
body.fullscreen-auth.auth-light-theme .auth-feature-icon i,
body.fullscreen-auth.auth-light-theme .auth-feature-icon svg,
body.fullscreen-auth.auth-light-theme .auth-feature-icon [data-lucide] {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Card suporte — light */
body.fullscreen-auth.auth-light-theme .auth-support-card {
    background: rgba(253, 246, 238, 0.78) !important;
    border: 1px solid rgba(200, 149, 106, 0.30) !important;
    box-shadow: 0 8px 24px rgba(92, 51, 23, 0.10);
}

body.fullscreen-auth.auth-light-theme .auth-support-content h4 {
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .auth-support-content p {
    color: rgba(92, 51, 23, 0.72) !important;
}

body.fullscreen-auth.auth-light-theme .auth-support-icon {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10), 0 2px 5px rgba(0, 0, 0, 0.06) !important;
}

body.fullscreen-auth.auth-light-theme .auth-support-icon i,
body.fullscreen-auth.auth-light-theme .auth-support-icon svg,
body.fullscreen-auth.auth-light-theme .auth-support-icon [data-lucide] {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .auth-support-link {
    color: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .auth-support-link i,
body.fullscreen-auth.auth-light-theme .auth-support-link svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Card do formulário — light (fundo creme semi-transparente) */
body.fullscreen-auth.auth-light-theme .auth-box,
body.fullscreen-auth.auth-light-theme .auth-box.glass-card {
    background: rgba(253, 246, 238, 0.86) !important;
    border: 1px solid rgba(200, 149, 106, 0.25) !important;
    backdrop-filter: blur(32px) !important;
    -webkit-backdrop-filter: blur(32px) !important;
    box-shadow:
        0 20px 50px rgba(92, 51, 23, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.90) !important;
}

/* Título e subtítulo — light */
body.fullscreen-auth.auth-light-theme .auth-section-title,
body.fullscreen-auth.auth-light-theme .auth-box h2 {
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .auth-section-subtitle,
body.fullscreen-auth.auth-light-theme .auth-box .auth-subtitle {
    color: #5c3317 !important;
}

/* Tag no painel esquerdo — light */
body.fullscreen-auth.auth-light-theme .auth-left-tag {
    background: rgba(253, 246, 238, 0.88) !important;
    border: 1px solid rgba(200, 149, 106, 0.35) !important;
    color: #ff7a00 !important;
    box-shadow: 0 4px 15px rgba(92, 51, 23, 0.08) !important;
}
body.fullscreen-auth.auth-light-theme .auth-left-tag i,
body.fullscreen-auth.auth-light-theme .auth-left-tag svg,
body.fullscreen-auth.auth-light-theme .auth-left-tag [data-lucide] {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .auth-tabs {
    background: rgba(122, 74, 42, 0.06) !important;
    border-color: rgba(200, 149, 106, 0.28) !important;
}

body.fullscreen-auth.auth-light-theme .auth-tab {
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .auth-tab i,
body.fullscreen-auth.auth-light-theme .auth-tab svg {
    color: #7a4a2a !important;
    stroke: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .auth-tab.active {
    color: #ffffff !important;
}

body.fullscreen-auth.auth-light-theme .auth-tab.active i,
body.fullscreen-auth.auth-light-theme .auth-tab.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.fullscreen-auth.auth-light-theme .auth-tab:not(.active):hover {
    background: rgba(122, 74, 42, 0.07) !important;
    color: #5c3317 !important;
}

/* Labels e links — light */
body.fullscreen-auth.auth-light-theme .form-group label {
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .auth-forgot {
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .auth-forgot:hover {
    color: var(--primary-color) !important;
}

body.fullscreen-auth.auth-light-theme .checkbox-container {
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .checkmark {
    background: rgba(122, 74, 42, 0.06) !important;
    border-color: rgba(200, 149, 106, 0.45) !important;
}

/* Input boxes — light: fundo branco puro e borda neutra sem linha laranja */
body.fullscreen-auth.auth-light-theme .input-box,
body.fullscreen-auth.auth-light-theme .auth-box .input-box {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Input focus — light mode: foco neutro elegante, NUNCA borda laranja */
body.fullscreen-auth.auth-light-theme .input-box:focus-within,
body.fullscreen-auth.auth-light-theme .auth-box .input-box:focus-within {
    background: #ffffff !important;
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12) !important;
}

/* Texto digitado no input — castanho escuro no light mode com fundo transparente */
body.fullscreen-auth.auth-light-theme .input-box input,
body.fullscreen-auth.auth-light-theme .auth-box .input-box input,
body.fullscreen-auth.auth-light-theme .form-input,
body.fullscreen-auth.auth-light-theme .input-box:focus-within .form-input,
body.fullscreen-auth.auth-light-theme .input-box .form-input:focus {
    color: #3b1f0e !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

body.fullscreen-auth.auth-light-theme .input-icon,
body.fullscreen-auth.auth-light-theme .auth-box .input-icon {
    border-right: 1px solid #e5e7eb !important;
    background: transparent !important;
}

/* Ícones dentro dos inputs — laranja Yetu */
body.fullscreen-auth.auth-light-theme .input-icon i,
body.fullscreen-auth.auth-light-theme .input-icon svg,
body.fullscreen-auth.auth-light-theme .auth-box .input-icon i,
body.fullscreen-auth.auth-light-theme .auth-box .input-icon svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .form-input::placeholder {
    color: #9ca3af !important;
}

/* Botão olho — ícone laranja */
body.fullscreen-auth.auth-light-theme .btn-eye,
body.fullscreen-auth.auth-light-theme .auth-box .btn-eye {
    border-left: 1px solid #e5e7eb !important;
    background: transparent !important;
    color: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .btn-eye:hover,
body.fullscreen-auth.auth-light-theme .auth-box .btn-eye:hover {
    color: #e06a00 !important;
    background: rgba(0, 0, 0, 0.03) !important;
}

body.fullscreen-auth.auth-light-theme .btn-eye i,
body.fullscreen-auth.auth-light-theme .btn-eye svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Botão principal submit — laranja */
body.fullscreen-auth.auth-light-theme .btn-glass.btn-full,
body.fullscreen-auth.auth-light-theme .btn-full {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.32) !important;
}

body.fullscreen-auth.auth-light-theme .btn-glass.btn-full:hover,
body.fullscreen-auth.auth-light-theme .btn-full:hover {
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.46) !important;
    transform: translateY(-2px) !important;
}

body.fullscreen-auth.auth-light-theme .btn-full i,
body.fullscreen-auth.auth-light-theme .btn-full svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Botão voltar passo — castanho */
body.fullscreen-auth.auth-light-theme .btn-back-step {
    color: #7a4a2a !important;
    background: transparent !important;
    border: none !important;
}

body.fullscreen-auth.auth-light-theme .btn-back-step i,
body.fullscreen-auth.auth-light-theme .btn-back-step svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Divider — light */
body.fullscreen-auth.auth-light-theme .auth-divider {
    background: transparent !important;
    background-color: transparent !important;
}

body.fullscreen-auth.auth-light-theme .auth-divider span {
    background: transparent !important;
    background-color: transparent !important;
    color: #9c6540 !important;
}

body.fullscreen-auth.auth-light-theme .auth-divider::before,
body.fullscreen-auth.auth-light-theme .auth-divider::after {
    border-bottom: 1px solid rgba(200, 149, 106, 0.25) !important;
}

/* Botão Google — light: hover laranja com texto e ícone brancos */
body.fullscreen-auth.auth-light-theme .btn-google {
    background: rgba(255, 249, 240, 0.82) !important;
    border: 1px solid rgba(200, 149, 106, 0.35) !important;
    color: #5c3317 !important;
    box-shadow: 0 2px 8px rgba(92, 51, 23, 0.10) !important;
}

body.fullscreen-auth.auth-light-theme .btn-google:hover {
    background: linear-gradient(135deg, #ff7a00 0%, #ff9a00 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(255, 122, 0, 0.36) !important;
}

body.fullscreen-auth.auth-light-theme .btn-google:hover .google-icon {
    filter: brightness(0) invert(1) !important;
}

/* Step indicator — light */
body.fullscreen-auth.auth-light-theme .step-dot {
    background: rgba(255, 122, 0, 0.08) !important;
    border-color: rgba(255, 122, 0, 0.30) !important;
    color: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .step-dot.active {
    background: linear-gradient(135deg, #ff7a00, #ff9a00) !important;
    border-color: #ff7a00 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(255, 122, 0, 0.35) !important;
}

body.fullscreen-auth.auth-light-theme .step-dot.done {
    background: #ff7a00 !important;
    border-color: #ff7a00 !important;
    color: #ffffff !important;
}

body.fullscreen-auth.auth-light-theme .step-dot.done i,
body.fullscreen-auth.auth-light-theme .step-dot.done svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

body.fullscreen-auth.auth-light-theme .step-line {
    background: rgba(255, 122, 0, 0.25) !important;
}

body.fullscreen-auth.auth-light-theme .step-line.done {
    background: #ff7a00 !important;
}

/* Link voltar — light */
body.fullscreen-auth.auth-light-theme .auth-back-link {
    color: #7a4a2a !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.fullscreen-auth.auth-light-theme .auth-back-link i,
body.fullscreen-auth.auth-light-theme .auth-back-link svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .auth-back-link:hover {
    color: #ff7a00 !important;
}

/* Ícones do toggle de tema — laranja no light */
body.fullscreen-auth.auth-light-theme .auth-theme-toggle svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Garantia global: qualquer ícone no formulário light → laranja */
body.fullscreen-auth.auth-light-theme .auth-box i[data-lucide],
body.fullscreen-auth.auth-light-theme .auth-box svg.lucide,
body.fullscreen-auth.auth-light-theme .auth-box .input-icon i,
body.fullscreen-auth.auth-light-theme .auth-box .input-icon svg,
body.fullscreen-auth.auth-light-theme .auth-box .btn-eye i,
body.fullscreen-auth.auth-light-theme .auth-box .btn-eye svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Exceção: texto e ícones do tab ACTIVO ficam brancos */
body.fullscreen-auth.auth-light-theme .auth-tab.active i[data-lucide],
body.fullscreen-auth.auth-light-theme .auth-tab.active svg.lucide,
body.fullscreen-auth.auth-light-theme .auth-tab.active i,
body.fullscreen-auth.auth-light-theme .auth-tab.active svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* Exceção: ícones do botão submit ficam brancos */
body.fullscreen-auth.auth-light-theme .btn-full i[data-lucide],
body.fullscreen-auth.auth-light-theme .btn-full svg,
body.fullscreen-auth.auth-light-theme .btn-primary i[data-lucide],
body.fullscreen-auth.auth-light-theme .btn-primary svg {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

/* ══════════════════════════════════════════
   FORGOT PASSWORD — Light Mode Rules
   ══════════════════════════════════════════ */
body.fullscreen-auth.auth-light-theme .fp-title {
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .fp-subtitle {
    color: #5c3317 !important;
}

body.fullscreen-auth.auth-light-theme .fp-input-group label {
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .fp-input-wrapper input {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .fp-input-wrapper input:focus {
    background: #ffffff !important;
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12) !important;
}

body.fullscreen-auth.auth-light-theme .fp-input-wrapper input::placeholder {
    color: #9ca3af !important;
}

body.fullscreen-auth.auth-light-theme .fp-input-icon {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-eye-btn {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}
body.fullscreen-auth.auth-light-theme .fp-eye-btn:hover {
    color: #e06a00 !important;
}
body.fullscreen-auth.auth-light-theme .fp-eye-btn i,
body.fullscreen-auth.auth-light-theme .fp-eye-btn svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-otp-box {
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .fp-otp-box:focus,
body.fullscreen-auth.auth-light-theme .fp-otp-box.filled {
    background: #ffffff !important;
    border-color: #6b7280 !important;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.12) !important;
}

body.fullscreen-auth.auth-light-theme .fp-prog-dot {
    border-color: rgba(200, 149, 106, 0.38) !important;
    background: rgba(253, 246, 238, 0.9) !important;
    color: #7a4a2a !important;
}

body.fullscreen-auth.auth-light-theme .fp-prog-dot.active {
    border-color: #ff7a00 !important;
    background: linear-gradient(135deg, #ff7a00, #ff9a00) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 0, 0.15) !important;
}

body.fullscreen-auth.auth-light-theme .fp-prog-dot.done {
    border-color: #10b981 !important;
    background: #10b981 !important;
    color: #ffffff !important;
}

body.fullscreen-auth.auth-light-theme .fp-prog-line {
    background: rgba(200, 149, 106, 0.28) !important;
}

body.fullscreen-auth.auth-light-theme .fp-prog-line.done {
    background: rgba(16, 185, 129, 0.5) !important;
}

body.fullscreen-auth.auth-light-theme .fp-btn-ghost {
    background: rgba(255, 249, 240, 0.82) !important;
    border: 1px solid rgba(200, 149, 106, 0.35) !important;
    color: #5c3317 !important;
}
body.fullscreen-auth.auth-light-theme .fp-btn-ghost:hover {
    background: rgba(255, 122, 0, 0.08) !important;
    color: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-back-link {
    color: #7a4a2a !important;
}
body.fullscreen-auth.auth-light-theme .fp-back-link:hover {
    color: #ff7a00 !important;
}
body.fullscreen-auth.auth-light-theme .fp-back-link i,
body.fullscreen-auth.auth-light-theme .fp-back-link svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-otp-timer {
    color: #5c3317 !important;
}
body.fullscreen-auth.auth-light-theme .fp-otp-timer span {
    color: #3b1f0e !important;
}
body.fullscreen-auth.auth-light-theme .fp-otp-timer i,
body.fullscreen-auth.auth-light-theme .fp-otp-timer svg {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-separator {
    color: #9c6540 !important;
}
body.fullscreen-auth.auth-light-theme .fp-separator::before,
body.fullscreen-auth.auth-light-theme .fp-separator::after {
    background: rgba(200, 149, 106, 0.25) !important;
}

body.fullscreen-auth.auth-light-theme .fp-email-badge {
    background: rgba(255, 122, 0, 0.12) !important;
    border: 1px solid rgba(255, 122, 0, 0.35) !important;
    color: #ff7a00 !important;
}

body.fullscreen-auth.auth-light-theme .fp-icon-wrap {
    background: rgba(255, 122, 0, 0.10) !important;
    border-color: rgba(255, 122, 0, 0.30) !important;
}
body.fullscreen-auth.auth-light-theme .fp-icon-wrap i,
body.fullscreen-auth.auth-light-theme .fp-icon-wrap svg,
body.fullscreen-auth.auth-light-theme .fp-icon-wrap [data-lucide] {
    color: #ff7a00 !important;
    stroke: #ff7a00 !important;
}

/* Transições suaves entre temas */
body.fullscreen-auth .auth-overlay,
body.fullscreen-auth .auth-box,
body.fullscreen-auth .auth-box.glass-card,
body.fullscreen-auth .auth-theme-toggle,
body.fullscreen-auth .auth-support-card,
body.fullscreen-auth .form-group label,
body.fullscreen-auth .form-input,
body.fullscreen-auth .input-box,
body.fullscreen-auth .auth-section-title,
body.fullscreen-auth .auth-tab,
body.fullscreen-auth .fp-step,
body.fullscreen-auth .modal-content {
    transition: background 0.40s ease, border-color 0.40s ease,
                box-shadow 0.40s ease, color 0.40s ease !important;
}

/* ==========================================================================
   MODAL DE ALERTA (custom-alert-modal) — MODO ESCURO E MODO CLARO
   ========================================================================== */

/* Dark Mode Modal (Padrão) */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.78) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-backdrop.open {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-backdrop .modal-content {
    width: 90%;
    max-width: 420px;
    padding: 2.2rem 2rem;
    text-align: center;
    border-radius: 24px;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    transform: scale(0.85) translateY(15px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.open .modal-content {
    transform: scale(1) translateY(0);
}

.modal-backdrop .modal-content h3,
.modal-backdrop .modal-content #modal-title {
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-backdrop .modal-content p,
.modal-backdrop .modal-content #modal-message {
    color: rgba(255, 255, 255, 0.70) !important;
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.modal-backdrop .modal-content i,
.modal-backdrop .modal-content svg,
.modal-backdrop .modal-content [data-lucide] {
    color: var(--primary-color, #ff7a00) !important;
    stroke: var(--primary-color, #ff7a00) !important;
}

.modal-backdrop .modal-content .btn-primary,
.modal-backdrop .modal-content button,
.modal-backdrop .modal-content .btn-glass,
.modal-backdrop .modal-content .modal-alert-btn,
.modal-backdrop .modal-content #modal-close-btn {
    background: linear-gradient(135deg, #ff7a00 0%, #e66e00 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
    width: 100% !important;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.35) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
}

.modal-backdrop .modal-content .btn-primary:hover,
.modal-backdrop .modal-content button:hover,
.modal-backdrop .modal-content .btn-glass:hover,
.modal-backdrop .modal-content .modal-alert-btn:hover,
.modal-backdrop .modal-content #modal-close-btn:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, #f07400 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 122, 0, 0.48) !important;
    transform: translateY(-1px) !important;
}

/* Light Mode Modal */
body.fullscreen-auth.auth-light-theme .modal-backdrop,
body.auth-light-theme .modal-backdrop {
    background: rgba(40, 20, 10, 0.40) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content,
body.auth-light-theme .modal-backdrop .modal-content {
    background: rgba(253, 246, 238, 0.98) !important;
    border: 1px solid rgba(200, 149, 106, 0.40) !important;
    box-shadow: 0 25px 60px rgba(70, 30, 10, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8) !important;
}

body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content h3,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content #modal-title,
body.auth-light-theme .modal-backdrop .modal-content h3,
body.auth-light-theme .modal-backdrop .modal-content #modal-title {
    color: #3b1f0e !important;
}

body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content p,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content #modal-message,
body.auth-light-theme .modal-backdrop .modal-content p,
body.auth-light-theme .modal-backdrop .modal-content #modal-message {
    color: #5c3317 !important;
}

body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content i,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content svg,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content [data-lucide],
body.auth-light-theme .modal-backdrop .modal-content i,
body.auth-light-theme .modal-backdrop .modal-content svg,
body.auth-light-theme .modal-backdrop .modal-content [data-lucide] {
    color: var(--primary-color, #ff7a00) !important;
    stroke: var(--primary-color, #ff7a00) !important;
}

/* Botão do Modal de Alerta em Modo Claro — Destaque Laranja com Texto Branco Legível */
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content button,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .btn-primary,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .btn-glass,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .modal-alert-btn,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content #modal-close-btn,
body.auth-light-theme .modal-backdrop .modal-content button,
body.auth-light-theme .modal-backdrop .modal-content .btn-primary,
body.auth-light-theme .modal-backdrop .modal-content .btn-glass,
body.auth-light-theme .modal-backdrop .modal-content .modal-alert-btn,
body.auth-light-theme .modal-backdrop .modal-content #modal-close-btn,
html.auth-light-theme .modal-backdrop .modal-content button,
html.light .modal-backdrop .modal-content button,
html.light-theme .modal-backdrop .modal-content button {
    background: linear-gradient(135deg, #ff7a00 0%, #ea580c 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1.5rem !important;
    width: 100% !important;
    box-shadow: 0 6px 20px rgba(255, 122, 0, 0.38) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
}

body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content button:hover,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .btn-primary:hover,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .btn-glass:hover,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content .modal-alert-btn:hover,
body.fullscreen-auth.auth-light-theme .modal-backdrop .modal-content #modal-close-btn:hover,
body.auth-light-theme .modal-backdrop .modal-content button:hover,
body.auth-light-theme .modal-backdrop .modal-content .btn-primary:hover,
body.auth-light-theme .modal-backdrop .modal-content .btn-glass:hover,
body.auth-light-theme .modal-backdrop .modal-content .modal-alert-btn:hover,
body.auth-light-theme .modal-backdrop .modal-content #modal-close-btn:hover,
html.auth-light-theme .modal-backdrop .modal-content button:hover,
html.light .modal-backdrop .modal-content button:hover,
html.light-theme .modal-backdrop .modal-content button:hover {
    background: linear-gradient(135deg, #ff8c1a 0%, #f07400 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 26px rgba(255, 122, 0, 0.50) !important;
    transform: translateY(-1px) !important;
}

/* ==========================================================================
   OTIMIZAÇÃO: REDUÇÃO DA ALTURA DO FORMULÁRIO DE AUTENTICAÇÃO (DESKTOP & MOBILE)
   ========================================================================== */
.auth-right {
    padding: 1.5rem 2.5rem !important;
}

.auth-box.glass-card {
    padding: 1.25rem 1.6rem !important;
    border-radius: 20px !important;
}

.auth-section-title {
    font-size: 1.28rem !important;
    margin-bottom: 0.65rem !important;
}

.auth-tabs {
    margin-bottom: 0.65rem !important;
    padding: 0.15rem !important;
}

.auth-tab {
    padding: 0.42rem 0.5rem !important;
    font-size: 0.78rem !important;
}

.btn-google {
    height: 38px !important;
    min-height: 38px !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.55rem !important;
}

.auth-divider {
    margin: 0.55rem 0 !important;
    font-size: 0.7rem !important;
}

.form-group {
    margin-bottom: 0.55rem !important;
}

.form-group label,
.label-row {
    margin-bottom: 0.2rem !important;
    font-size: 0.68rem !important;
}

.auth-forgot {
    font-size: 0.68rem !important;
}

.input-box {
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 10px !important;
}

.input-icon {
    width: 36px !important;
    min-height: 38px !important;
    height: 38px !important;
}

.input-icon i,
.input-icon svg {
    width: 14px !important;
    height: 14px !important;
}

.btn-eye {
    width: 36px !important;
    min-height: 38px !important;
    height: 38px !important;
}

.btn-eye i,
.btn-eye svg {
    width: 14px !important;
    height: 14px !important;
}

.form-input {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.84rem !important;
}

.form-group-options {
    margin: 0.55rem 0 !important;
}

.checkbox-container {
    font-size: 0.76rem !important;
    gap: 6px !important;
}

.checkmark {
    width: 15px !important;
    height: 15px !important;
}

.btn-glass,
.btn-full,
.btn-back-step,
button[type="submit"],
.auth-box .btn,
.auth-box .btn-primary {
    padding: 10px 20px !important;
    min-height: 39px !important;
    height: 39px !important;
    font-size: 0.86rem !important;
    border-radius: 10px !important;
    margin-top: 0.2rem !important;
}

.step-indicator {
    margin-bottom: 0.65rem !important;
}

.step-dot {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.68rem !important;
}

.step-line {
    max-width: 45px !important;
}

.auth-footer-link {
    margin-top: 0.65rem !important;
    font-size: 0.76rem !important;
}

.auth-back-link {
    margin-top: 0.45rem !important;
    font-size: 0.74rem !important;
}

/* ==========================================================================
   ENQUADRAMENTO PERFEITO 100VH / 100DVH MOBILE NO NAVEGADOR (CHROME / SAFARI / APK)
   ========================================================================== */
@media (max-width: 768px) {
    html, body.fullscreen-auth {
        height: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        position: fixed !important;
        inset: 0 !important;
    }

    .auth-wrapper {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        grid-template-columns: 1fr !important;
    }

    /* Ocultar elementos secundários fora do foco no mobile */
    .auth-left,
    .auth-footer,
    .auth-back-link {
        display: none !important;
    }

    .auth-right {
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding: max(0.5rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.5rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left)) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
    }

    /* Card de login perfeitamente enquadrado */
    .auth-box.glass-card {
        width: 100% !important;
        max-width: 380px !important;
        margin: auto 0 !important;
        padding: 1.15rem 1.15rem !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        background: rgba(14, 18, 28, 0.80) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
    }

    body.fullscreen-auth.auth-light-theme .auth-box.glass-card {
        background: rgba(255, 250, 244, 0.92) !important;
        border: 1px solid rgba(200, 149, 106, 0.35) !important;
        box-shadow: 0 14px 36px rgba(122, 74, 42, 0.18) !important;
    }

    /* Logo no cabeçalho */
    .auth-header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        margin-bottom: 0.35rem !important;
    }

    .auth-header img {
        height: 36px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Título da secção */
    .auth-section-title {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        text-align: center !important;
        margin-bottom: 0.35rem !important;
    }

    /* Abas Entrar / Criar Conta */
    .auth-tabs {
        margin-bottom: 0.45rem !important;
        padding: 0.15rem !important;
        height: 35px !important;
        min-height: 35px !important;
        border-radius: 9px !important;
    }

    .auth-tab {
        padding: 0.3rem 0.5rem !important;
        font-size: 0.8rem !important;
        border-radius: 7px !important;
    }

    /* Botão Google SSO */
    .btn-google {
        height: 37px !important;
        min-height: 37px !important;
        font-size: 0.82rem !important;
        margin-bottom: 0.4rem !important;
        border-radius: 9px !important;
        padding: 0 12px !important;
    }

    /* Divisor "ou use o seu e-mail" */
    .auth-divider {
        margin: 0.4rem 0 !important;
        font-size: 0.68rem !important;
    }

    /* Campos do Formulário */
    .form-group {
        margin-bottom: 0.42rem !important;
    }

    .form-group label,
    .label-row {
        margin-bottom: 0.18rem !important;
        font-size: 0.68rem !important;
    }

    .auth-forgot {
        font-size: 0.68rem !important;
    }

    .input-box {
        height: 37px !important;
        min-height: 37px !important;
        border-radius: 9px !important;
    }

    .input-icon,
    .btn-eye {
        width: 35px !important;
        height: 37px !important;
        min-height: 37px !important;
    }

    .form-input {
        height: 37px !important;
        font-size: 16px !important; /* Previne auto-zoom inoportuno no iOS Safari */
        padding: 0 0.75rem !important;
    }

    /* Opção Lembrar Senha */
    .form-group-options {
        margin: 0.4rem 0 !important;
    }

    .checkbox-container {
        font-size: 0.74rem !important;
        gap: 6px !important;
    }

    .checkmark {
        width: 15px !important;
        height: 15px !important;
    }

    /* Botões de Submissão */
    .btn-glass,
    .btn-full,
    .btn-back-step,
    button[type="submit"],
    .auth-box .btn,
    .auth-box .btn-primary {
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 1.25rem !important;
        font-size: 0.88rem !important;
        font-weight: 600 !important;
        border-radius: 9px !important;
        margin-top: 0.25rem !important;
    }

    /* Indicador de passos no registo */
    .step-indicator {
        margin-bottom: 0.45rem !important;
    }

    .step-dot {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
    }

    .step-line {
        max-width: 40px !important;
    }

    /* Botão Flutuante de Tema reposicionado para o topo direito no mobile */
    .auth-theme-toggle {
        top: max(0.65rem, env(safe-area-inset-top)) !important;
        right: max(0.65rem, env(safe-area-inset-right)) !important;
        bottom: auto !important;
        left: auto !important;
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
        z-index: 99 !important;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
    }

    .auth-theme-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Imagem de fundo e overlay em 100dvh */
    body::before {
        content: "" !important;
        position: fixed !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        height: 100dvh !important;
        z-index: -1000 !important;
        background-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%), url('../assets/hero_mobile_opt.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        pointer-events: none !important;
    }

    .auth-overlay {
        background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.30) 100%) !important;
        opacity: 0.35 !important;
        height: 100% !important;
        height: 100dvh !important;
    }
}

/* Ajuste refinado para telemóveis em modo paisagem (landscape) com altura reduzida */
@media (max-width: 768px) and (max-height: 580px) {
    .auth-right {
        justify-content: flex-start !important;
        padding-top: max(0.35rem, env(safe-area-inset-top)) !important;
        padding-bottom: max(0.35rem, env(safe-area-inset-bottom)) !important;
    }

    .auth-box.glass-card {
        padding: 0.85rem 1rem !important;
    }

    .auth-header {
        margin-bottom: 0.2rem !important;
    }

    .auth-header img {
        height: 28px !important;
    }

    .auth-section-title {
        display: none !important;
    }
}

/* ==========================================================================
   APD COMPLIANCE — MODO TELEMÓVEL/E-MAIL & LEITURA OBRIGATÓRIA DE TERMOS
   ========================================================================== */
.auth-box.glass-card {
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.reg-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 0.85rem;
}

.reg-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.5rem 0.65rem;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(226, 232, 240, 0.82);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.reg-mode-btn.active {
    background: rgba(255, 122, 0, 0.18);
    border-color: rgba(255, 122, 0, 0.55);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 122, 0, 0.22);
}

.reg-mode-hint {
    font-size: 0.72rem;
    color: rgba(148, 163, 184, 0.9);
    margin: -0.25rem 0 0.7rem 0;
    line-height: 1.4;
}

.reg-both-toggle {
    display: inline-block;
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
    color: #ff9a3c;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

.apd-legal-card {
    margin: 0.65rem 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 122, 0, 0.30);
}

.apd-legal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0.45rem;
    flex-wrap: wrap;
}

.apd-legal-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
}

.apd-legal-status {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.40);
    transition: all 0.25s ease;
}

.apd-legal-status.is-read {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.45);
}

.apd-legal-progress {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.apd-legal-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff7a00, #10b981);
    transition: width 0.12s ease;
}

.apd-legal-scroll {
    height: 140px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.73rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 0.6rem;
    scrollbar-width: thin;
}

.apd-legal-scroll p {
    margin: 0 0 0.55rem 0;
    color: inherit;
    font-size: inherit;
}

.apd-legal-scroll strong {
    color: #ffffff;
}

.apd-legal-scroll a {
    color: #ff9a3c;
    text-decoration: underline;
}

.apd-legal-end-marker {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #10b981;
    padding: 0.35rem 0 0.1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    margin-top: 0.4rem;
}

.apd-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.73rem;
    line-height: 1.4;
    color: #e2e8f0;
    cursor: pointer;
    margin-bottom: 0.45rem;
    user-select: none;
}

.apd-legal-check.is-locked {
    opacity: 0.58;
    cursor: not-allowed;
}

.apd-legal-check input[type="checkbox"] {
    margin-top: 2px;
    width: 15px;
    height: 15px;
    accent-color: #ff7a00;
    flex-shrink: 0;
    cursor: pointer;
}

.apd-legal-check input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.apd-legal-check a {
    color: #ff9a3c;
    text-decoration: underline;
}

.apd-legal-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.69rem;
    margin-top: 0.25rem;
}

.apd-legal-links a,
.apd-legal-expand-btn {
    color: #ff9a3c;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    font-size: 0.69rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-glass[disabled],
.btn-glass[aria-disabled="true"],
.btn-google[disabled] {
    opacity: 0.48 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.35);
    pointer-events: auto;
}

/* Light theme overrides for APD Legal Box & Mode Switch */
html.auth-light-theme .reg-mode-switch,
body.auth-light-theme .reg-mode-switch {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

html.auth-light-theme .reg-mode-btn,
body.auth-light-theme .reg-mode-btn {
    color: #475569;
}

html.auth-light-theme .reg-mode-btn.active,
body.auth-light-theme .reg-mode-btn.active {
    background: #ffffff;
    border-color: #ff7a00;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

html.auth-light-theme .reg-mode-hint,
body.auth-light-theme .reg-mode-hint {
    color: #64748b;
}

html.auth-light-theme .apd-legal-card,
body.auth-light-theme .apd-legal-card {
    background: #fff7ed;
    border-color: rgba(255, 122, 0, 0.35);
}

html.auth-light-theme .apd-legal-title,
body.auth-light-theme .apd-legal-title {
    color: #0f172a;
}

html.auth-light-theme .apd-legal-status,
body.auth-light-theme .apd-legal-status {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}

html.auth-light-theme .apd-legal-status.is-read,
body.auth-light-theme .apd-legal-status.is-read {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

html.auth-light-theme .apd-legal-progress,
body.auth-light-theme .apd-legal-progress {
    background: #e2e8f0;
}

html.auth-light-theme .apd-legal-scroll,
body.auth-light-theme .apd-legal-scroll {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #334155;
}

html.auth-light-theme .apd-legal-scroll strong,
body.auth-light-theme .apd-legal-scroll strong {
    color: #0f172a;
}

html.auth-light-theme .apd-legal-scroll a,
body.auth-light-theme .apd-legal-scroll a,
html.auth-light-theme .apd-legal-check a,
body.auth-light-theme .apd-legal-check a,
html.auth-light-theme .apd-legal-links a,
body.auth-light-theme .apd-legal-links a,
html.auth-light-theme .apd-legal-expand-btn,
body.auth-light-theme .apd-legal-expand-btn,
html.auth-light-theme .reg-both-toggle,
body.auth-light-theme .reg-both-toggle {
    color: #c2410c;
}

html.auth-light-theme .apd-legal-check,
body.auth-light-theme .apd-legal-check {
    color: #1e293b;
}

html.auth-light-theme .apd-legal-end-marker,
body.auth-light-theme .apd-legal-end-marker {
    color: #047857;
    border-top-color: #cbd5e1;
}
