/*
 * css/pages/public-styles.css
 * [VERSﾃグ 4.0 - REFEITO]
 * - Estilos unificados para 'index.php' (Landing) e 'login.php' (Auth).
 * - Alinhado com o tema V5.0 "Cyberpunk".
 */

/* --- Estilos da Landing Page (index.php) --- */
body#page-index {
    display: block; /* Sobrescreve o 'grid' do login.php */
    background-color: var(--bg-deep-dark); /* [THEME V5.0] */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%231A1A1A' fill-opacity='0.4' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13.99 8V33l-13.99 8L0 33V17.25zM14 0l14 8v16L14 32 0 24V8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.navbar-public {
    background: rgba(0, 0, 0, 0.7); /* [THEME V5.0] */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border); /* [THEME V5.0] */
    padding: 1rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}
.navbar-public .container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.brand-public {
    font-weight: 700;
    color: var(--bee-primary); /* [THEME V5.0] */
    text-decoration: none;
    font-size: 1.25rem;
}
.nav-links a {
    color: var(--txt-300); /* [THEME V5.0] */
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--txt-100); }

.hero {
    padding: 140px 2rem 80px 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--txt-100);
}
.hero .lead {
    font-size: 1.25rem;
    color: var(--txt-300);
    margin: 1.5rem 0 2.5rem 0;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1280px;
    margin: 4rem auto;
    padding: 0 2rem;
}
/* Usa o componente .card global (card.css) */
.features .card i { font-size: 2rem; color: var(--bee-primary); margin-bottom: 1rem; }
.features .card h3 { color: var(--txt-100); margin-bottom: 0.5rem; }
.features .card p { color: var(--txt-300); }

/* --- Estilos da Pﾃ｡gina de Login (login.php) --- */
body#page-login {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 1rem;
    background-color: var(--bg-deep-dark); /* [THEME V5.0] */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='hexagons' fill='%231A1A1A' fill-opacity='0.4' fill-rule='nonzero'%3E%3Cpath d='M13.99 9.25l13.99 8V33l-13.99 8L0 33V17.25zM14 0l14 8v16L14 32 0 24V8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.login-container { width: 100%; max-width: 500px; }
.login-brand {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-bottom: 1.5rem; color: var(--txt-100); text-decoration: none;
}
.login-brand .logo {
    width: 40px; height: 40px; display: grid; place-items: center;
    border-radius: var(--radius-sm); /* [THEME V5.0] */
    background: var(--bee-primary); /* [THEME V5.0] */
    box-shadow: var(--bee-primary-glow); /* [THEME V5.0] */
    font-size: 1.5rem; color: #000; /* [THEME V5.0] */
}
.login-brand .name { font-size: 1.25rem; font-weight: 700; }

.auth-tabs {
    display: flex; border-bottom: 1px solid var(--glass-border); /* [THEME V5.0] */
    margin-bottom: 1.5rem;
}
.tab-link {
    flex: 1; text-align: center; padding: 12px 16px; font-weight: 600;
    color: var(--txt-500); border-bottom: 3px solid transparent; cursor: pointer; transition: 150ms ease;
}
.tab-link:hover { color: var(--txt-100); }
.tab-link.active { color: var(--bee-primary); border-bottom-color: var(--bee-primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade 240ms ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: translateY(0) } }

/* Grid para o formulﾃ｡rio de registro */
.grid-2 {
    display: grid;
    gap: 0 1rem;
}
@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
}
/* --- Estilos do Seletor de Idioma (Público) --- */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.lang-selector .btn-lang {
    background: var(--glass-fill);
    border-color: var(--glass-border);
    padding: 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Botões redondos */
}
.lang-selector .btn-lang:hover {
    background: var(--glass-border);
    border-color: var(--bee-primary);
}
    
/* Estilo para a página de Login/Verificação (V4.1) */
.card .title, .card .subtitle {
    text-align: center;
}

.verification-code-input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
}

.resend-container {
    text-align: center;
    margin-top: 1rem; /* Adicionado para espaçamento */
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.resend-container .link {
    color: var(--txt-500); /* Cor inicial desativada */
    pointer-events: none; /* Desativado por padrão */
    text-decoration: none;
    transition: color 0.3s ease;
}

.resend-container .link:hover {
    text-decoration: underline;
}

.resend-container .link.active-link { /* Classe para ativar o link */
    color: var(--bee-primary); /* Cor ativa */
    pointer-events: auto; /* Ativar clique */
}

/* Spinner dentro dos botões */
.btn .spinner-border {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: text-bottom;
    border: .1em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
}

@keyframes spinner-border {
  to { transform: rotate(360deg); }
}
<style>.resend-container {
    display: block !important;
    text-align: center;
    margin: 15px 0;
}

.resend-container .link {
    color: #aaa;
    pointer-events: none;
}

.resend-container .link.active-link {
    color: #FEEA00;
    pointer-events: auto;
    cursor: pointer;
    text-decoration: underline;
}

</style>