/* ================================================
   LiberalVibe.com — Auth Styles (Landing, Login, Register)
   Baseado nas imagens de referência 1, 2, 3
   ================================================ */

/* ============================
   AGE-GATE POPUP
   ============================ */
.age-gate-overlay {
    display: none;
    position: fixed !important;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    align-items: flex-start;       /* alinhamento topo → baixo */
    justify-content: center;
    padding: 40px 20px 20px;       /* espaço no topo para começar de cima */
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.age-gate-overlay.active {
    display: flex;
}

.age-gate-modal {
    background: #1a1c24;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 600px;
    position: relative;
    animation: ageGateIn 0.3s ease;
    text-align: left; /* base */
}

/* Centralizar topo: badge e título */
.age-gate-modal > .age-gate-badge,
.age-gate-modal > .age-gate-title {
    display: block;
    text-align: center;
    width: 100%;
}

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

/* Badge topo */
.age-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247, 35, 94, 0.12);
    border: 1px solid rgba(247, 35, 94, 0.35);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    padding: 7px 14px;
    border-radius: 50px;
    margin-bottom: 22px;
}

/* Título principal */
.age-gate-title {
    font-size: 28px;
    font-weight: 900;
    color: #f7235e;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

/* Tagline */
.age-gate-tagline {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Textos descritivos */
.age-gate-text {
    font-size: 14px;
    font-weight: 400;
    color: #c8cad0;
    line-height: 1.65;
    margin-bottom: 14px;
    text-align: justify;
}

.age-gate-text--small {
    font-size: 13px;
    color: #8a8d99;
    font-style: italic;
}

/* Lista de regras */
.age-gate-rules {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.age-gate-rules li {
    font-size: 13px;
    color: #b0b3be;
    font-weight: 500;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.age-gate-rules li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f7235e;
    font-size: 16px;
    line-height: 1.3;
}

/* Botões */
.age-gate-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.age-gate-btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    text-align: center;
}

.age-gate-btn--confirm {
    background: #f7235e;
    color: #ffffff;
    border-color: #f7235e;
    min-width: 200px;
}

.age-gate-btn--confirm:hover {
    background: #e01a50;
    border-color: #e01a50;
    transform: translateY(-1px);
}

.age-gate-btn--terms {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    min-width: 160px;
}

.age-gate-btn--terms:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* ============================
   POPUP TERMOS DE USO
   ============================ */
.age-gate-overlay--terms {
    z-index: 10000;
}

.age-gate-modal--terms {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

/* Badge branco no popup de termos */
.age-gate-modal--terms .age-gate-badge {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.25);
}

.age-gate-modal--terms .age-gate-badge svg {
    stroke: #ffffff;
}

.terms-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 8px;
    margin-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 35, 94, 0.4) transparent;
}

.terms-body::-webkit-scrollbar { width: 4px; }
.terms-body::-webkit-scrollbar-track { background: transparent; }
.terms-body::-webkit-scrollbar-thumb { background: rgba(247, 35, 94, 0.4); border-radius: 4px; }

.terms-body h3 {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 8px;
}

.terms-body h3:first-child { margin-top: 0; }

.terms-body p {
    font-size: 13px;
    color: #b0b3be;
    line-height: 1.7;
    margin-bottom: 10px;
}

.terms-body ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.terms-body ul li {
    font-size: 13px;
    color: #b0b3be;
    line-height: 1.7;
    margin-bottom: 4px;
}

/* Desktop-only: visível apenas acima de 768px */
.age-gate-desktop-only {
    display: block;
}

/* Responsividade popups */
@media (max-width: 768px) {
    .age-gate-desktop-only { display: none !important; }

    /* Mobile: modal ocupa 100% da largura disponível */
    .age-gate-overlay {
        padding: 16px 12px 20px; /* padding compacto nas laterais */
        align-items: flex-start;
    }
    .age-gate-modal {
        width: 100%;
        max-width: 100%;          /* sem limite de largura no mobile */
        border-radius: 12px;
        padding: 24px 18px 24px;
    }
}

@media (max-width: 480px) {
    .age-gate-overlay {
        padding: 20px 20px 20px;  /* 20px de espaço em todas as bordas */
        align-items: flex-start;
    }
    .age-gate-modal {
        padding: 22px 18px 22px;
        border-radius: 12px;      /* cantos arredondados pois não cola nas bordas */
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }
    .age-gate-title { font-size: 22px; }
    .age-gate-btn { padding: 13px 18px; font-size: 13px; min-width: unset; width: 100%; }
    .age-gate-buttons { flex-direction: column; align-items: center; }
}


/* ============================
   LANDING PAGE
   (Baseado em 1-index-sem-estar-logado-responsiva.html)
   ============================ */

/* ── Override: força dark mode na landing independente do light-mode no localStorage ── */
html .landing-body,
html.light-mode .landing-body,
.light-mode .landing-body {
    background-color: #1a1c20 !important;
    color: #ffffff !important;
}

html.light-mode .landing-header,
.light-mode .landing-header {
    background-color: #1a1c20 !important;
    border-bottom-color: rgba(255,255,255,0.05) !important;
}

html.light-mode .landing-mobile-cta,
.light-mode .landing-mobile-cta {
    background-color: #1a1c20 !important;
    border-bottom-color: rgba(255,255,255,0.08) !important;
}

html.light-mode .landing-hero h1,
.light-mode .landing-hero h1 {
    color: #ffffff !important;
}

html.light-mode .landing-hero p,
.light-mode .landing-hero p {
    color: #f3f4f6 !important;
}

html.light-mode .landing-info-line,
.light-mode .landing-info-line {
    color: #ffffff !important;
}

html.light-mode .landing-info-line svg,
.light-mode .landing-info-line svg {
    stroke: #ffffff !important;
}

.landing-body {
    background-color: #1a1c20 !important;
    color: #ffffff !important;
    overflow-x: hidden;
    font-family: var(--font-landing);
}

.landing-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 40px;
    background-color: #1a1c20 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-logo {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #ffffff !important;
}

.landing-logo span {
    color: #f7235e !important;
}

.landing-nav {
    display: none; /* botões movidos para barra abaixo do header */
}

.landing-nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-entrar-landing {
    background-color: #ffffff;
    color: #1a1c20 !important;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-entrar-landing:hover {
    opacity: 0.9;
    color: #1a1c20 !important;
}

/* Hero */
.landing-hero {
    text-align: center;
    padding: 50px 20px 30px 20px;
}

.landing-hero-icon {
    margin-bottom: 15px;
}

.landing-hero h1 {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 15px;
    color: #ffffff !important;
}

.landing-hero h1 span {
    color: #f7235e !important;
}

.landing-hero p {
    font-size: 18px;
    font-weight: 500;
    color: #f3f4f6 !important;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid de perfis */
.landing-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 40px 60px 40px;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

/* Card de perfil */
.landing-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #111;
}

.landing-foto-borrada {
    position: absolute;
    top: -30px;
    left: -30px;
    right: -30px;
    bottom: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.55);
    z-index: 1;
}

.landing-card-overlay {
    text-align: center;
    z-index: 2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
    padding: 10px;
}

.landing-card-overlay h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 2px;
}

.landing-card-overlay p {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
}

.landing-star-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.landing-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.landing-info-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.landing-info-line svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================
   LOGIN & REGISTER FORMS
   (Baseados nas imagens 2 e 3)
   ============================ */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background-color: #000000;
    padding: 20px;
}

.auth-card {
    background-color: #1a1c24;
    border-radius: 16px;
    padding: 40px 35px;
    width: 100%;
    max-width: 460px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-logo {
    text-align: center;
    margin-bottom: 6px;
}

.auth-logo-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    font-family: var(--font-brand-script);
    font-size: clamp(52px, 8vw, 62px);
    font-weight: 700;
    letter-spacing: 0.035em;
    line-height: 0.95;
    white-space: nowrap;
}

.auth-logo-text .white { color: #ffffff; }
.auth-logo-text .pink { color: #f7235e; }

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

.auth-title {
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-desc {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 25px;
}

/* Divider "OU PREENCHA O FORMULÁRIO" */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-top: 1px solid var(--border-color);
}

/* Inputs do Auth */
.auth-form .form-group {
    margin-bottom: 14px;
}

.auth-form .form-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 5px;
}

.auth-form .form-input,
.auth-form .form-select {
    background-color: #12121a;
    border: 1px solid #2a2a3a;
    border-radius: 10px;
    padding: 13px 16px;
}

.auth-form .form-input:focus,
.auth-form .form-select:focus {
    border-color: var(--btn-pink);
}

/* Wrapper "ver senha" */
.input-password-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-password-wrap .form-input {
    flex: 1;
    padding-right: 44px;
}

.btn-toggle-password {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 15px;
    transition: color var(--transition-base);
    -webkit-tap-highlight-color: transparent;
}

.btn-toggle-password:hover,
.btn-toggle-password:focus-visible {
    color: var(--btn-pink);
    outline: none;
}

/* Link esqueci senha */
.auth-forgot {
    text-align: right;
    margin-top: -8px;
    margin-bottom: 16px;
}

.auth-forgot a {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.auth-forgot a:hover {
    color: var(--btn-pink);
}

/* Botão principal de login/registro */
.btn-auth {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    background-color: var(--btn-pink);
    color: #ffffff;
    border: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background var(--transition-base);
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-auth:hover {
    background-color: var(--btn-pink-hover);
}

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

/* Link alternativo (criar conta / já tem conta) */
.auth-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-alt a {
    color: var(--btn-pink);
    font-weight: 700;
}

/* Erro geral */
.auth-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    margin-bottom: 16px;
    color: var(--btn-danger);
    font-size: 13px;
    font-weight: 600;
    display: none;
}

.auth-error.visible {
    display: block;
}

/* Checkboxes do registro */
.auth-form .form-checkbox {
    margin-bottom: 12px;
}

.auth-form .form-checkbox a {
    color: var(--btn-pink);
    font-weight: 600;
}

/* ============================
   BARRA MOBILE CTA (abaixo do header)
   ============================ */
.landing-mobile-cta {
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #1a1c20;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    gap: 12px;
    box-sizing: border-box;
}

.landing-mobile-cta .btn-mobile-entrar,
.landing-mobile-cta .btn-mobile-cadastrar {
    flex: 0 0 auto;
    padding: 13px 32px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, border-color 0.2s;
}

.landing-mobile-cta .btn-mobile-entrar {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.landing-mobile-cta .btn-mobile-entrar:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.landing-mobile-cta .btn-mobile-cadastrar {
    background-color: #f7235e;
    color: #ffffff;
    border: 2px solid #f7235e;
}

.landing-mobile-cta .btn-mobile-cadastrar:hover {
    opacity: 0.9;
}

/* ============================
   RESPONSIVIDADE LANDING
   ============================ */
@media (max-width: 1024px) {
    .landing-grid { grid-template-columns: repeat(3, 1fr); }
    .landing-header { padding: 20px 30px; }
    .landing-container { padding: 20px 30px 60px 30px; }
}

@media (max-width: 768px) {
    .landing-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .landing-hero h1 { font-size: 32px; }
    .landing-hero p { font-size: 16px; }

    /* Botões ocupam largura total no mobile */
    .landing-mobile-cta { justify-content: stretch; }
    .landing-mobile-cta .btn-mobile-entrar,
    .landing-mobile-cta .btn-mobile-cadastrar {
        flex: 1;
        padding: 13px 10px;
    }
}

@media (max-width: 480px) {
    .landing-header { padding: 15px 20px; }
    .landing-logo { font-size: 24px; }
    .btn-entrar-landing { padding: 8px 16px; font-size: 11px; }
    .landing-hero { padding: 30px 15px 20px 15px; }
    .landing-hero h1 { font-size: 26px; margin-bottom: 8px; }
    .landing-hero p { font-size: 14px; }
    .landing-hero-icon svg { width: 32px; height: 32px; }
    .landing-container { padding: 15px 20px 40px 20px; }
    .landing-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .landing-card-overlay h2 { font-size: 20px; }
    .landing-card-overlay p { font-size: 10px; }
    .landing-star-icon { width: 20px; height: 20px; bottom: 8px; right: 8px; }
    .landing-star-icon svg { width: 10px; height: 10px; }
    .landing-info-line { font-size: 11px; gap: 6px; }
    .landing-info-line svg { width: 12px; height: 12px; }

    .auth-page { align-items: flex-start; padding-top: 24px; }
    .auth-card { padding: 30px 25px; }
    .auth-logo-text { font-size: clamp(44px, 14vw, 54px); }
    .auth-title { font-size: 20px; }
}

@media (max-width: 360px) {
    .landing-header { padding: 12px 15px; }
    .landing-logo { font-size: 20px; }
    .landing-nav { gap: 10px; }
    .landing-nav a { font-size: 10px; }
    .landing-container { padding: 10px 15px 30px 15px; }
    .landing-card-overlay p { font-size: 9px; }
}
