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

/* ── Slideshow fixo ── */
.auth-slideshow {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.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;
}

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

/* Overlay escuro */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        120deg,
        rgba(5, 7, 12, 0.45) 0%,
        rgba(8, 10, 18, 0.25) 50%,
        rgba(5, 7, 12, 0.40) 100%
    );
}

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

/* ── 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: 50px;
    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: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-feature-icon i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.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 */
.auth-support-card {
    display: flex;
    align-items: flex-start;
    gap: 1.0rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 1.2rem;
    margin-top: auto;
    max-width: 400px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-support-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-support-icon i {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.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 — Glassmorphic Card Container */
.auth-box.glass-card {
    width: 100%;
    max-width: 410px;
    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);
    border-radius: 24px;
    padding: 1.6rem 1.8rem;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    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: rgba(160, 174, 192, 0.7);
    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.active {
    background: linear-gradient(135deg, var(--primary-color), #ff9a00);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.35);
}

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

/* Formulário */
.auth-form { display: none; }
.auth-form.active {
    display: block;
    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: rgba(160, 174, 192, 0.75);
    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 — Glass Transparent Fields */
.input-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    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;
}

.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: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}
.auth-forgot:hover { color: #ff9a00; 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: rgba(160, 174, 192, 0.8);
    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: rgba(160, 174, 192, 0.65);
    transition: all 0.35s ease;
    flex-shrink: 0;
}

.step-dot.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    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: var(--primary-color);
}

.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; }

/* ── Google SSO Button Styles ── */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.8rem 0;
    color: rgba(160, 174, 192, 0.55);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

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

.auth-divider span {
    padding: 0 .75em;
}

.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%;
}

.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;
}

/* 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;
}

