/* ============================================
   NETIZZY - CSS COMPLETO
   ============================================ */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A52D5;
    --primary-light: #8B83FF;
    --secondary: #FF6584;
    --background: #F0F2FF;
    --card: #FFFFFF;
    --text: #2D2B3E;
    --text-light: #6B6A7A;
    --text-muted: #9A98AA;
    --border: #E8E7F0;
    --shadow: 0 4px 12px rgba(108, 99, 255, 0.15);
    --shadow-lg: 0 8px 24px rgba(108, 99, 255, 0.25);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   LOGO NETIZZY (Wi-Fi)
   ============================================ */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo .wifi-icon {
    fill: var(--primary);
    flex-shrink: 0;
}

.logo .wifi-icon circle {
    fill: var(--primary);
}

.logo:hover .wifi-icon {
    fill: var(--primary-dark);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    background: var(--card);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    font-weight: 500;
    color: var(--text);
    margin-right: 0.5rem;
}

/* ============================================
   RODAPÉ (FOOTER)
   ============================================ */

.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.footer .footer-logo .wifi-icon {
    fill: var(--primary);
    width: 24px;
    height: 24px;
}

.footer .footer-tagline {
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
}

.footer .footer-company {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer .footer-divider {
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    margin: 0.25rem 0;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: #E55A78;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-large {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    flex: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   AUTH (Login/Cadastro/Recuperar)
   ============================================ */

.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #F0F2FF, #E8E6FF);
    flex: 1;
}

.auth-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.5s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    justify-content: center;
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    color: var(--text);
}

.auth-header p {
    color: var(--text-light);
    margin-top: 0.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.form-group input {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.1);
    background: white;
}

.form-group .helper-text {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

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

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================
   CAMPO DE SENHA COM OLHO
   ============================================ */

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    width: 100%;
    padding-right: 3rem;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-wrapper .toggle-password:hover {
    color: var(--primary);
}

.password-wrapper .toggle-password svg {
    fill: currentColor;
}

/* ============================================
   MENSAGENS
   ============================================ */

.mensagem {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-top: 0.5rem;
    display: none;
    font-weight: 500;
    animation: fadeIn 0.3s ease;
}

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

.mensagem.sucesso {
    display: block;
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.mensagem.erro {
    display: block;
    background: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard {
    min-height: 70vh;
    padding: 2rem 0;
    flex: 1;
}

.dashboard h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.dashboard .subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
    font-size: 1.25rem;
}

.card p {
    color: var(--text-light);
}

.card .card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   PERFIL
   ============================================ */

.perfil-info {
    background: var(--card);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.perfil-info p {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.perfil-info p:last-child {
    border-bottom: none;
}

.perfil-info strong {
    color: var(--text);
    display: inline-block;
    width: 120px;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .auth-card {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .cards {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .perfil-info strong {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer .footer-tagline {
        font-size: 0.85rem;
    }

    .footer .footer-company {
        font-size: 0.75rem;
    }
}

/* ============================================
   CHECKBOXES PERSONALIZADOS (LGPD)
   ============================================ */

   .checkbox-group {
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.checkbox-label .checkmark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: var(--background);
    transition: var(--transition);
    position: relative;
    margin-top: 1px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.checkbox-label .helper-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   RESPONSIVO PARA CHECKBOXES
   ============================================ */

@media (max-width: 480px) {
    .checkbox-label {
        font-size: 0.85rem;
    }
    
    .checkbox-label .checkmark {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   PÁGINAS LEGAIS (Termos e Privacidade)
   ============================================ */

   .legal-content {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.legal-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.legal-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.legal-section ul li {
    color: var(--text-light);
    padding: 0.25rem 0 0.25rem 1.5rem;
    position: relative;
    line-height: 1.6;
}

.legal-section ul li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    text-decoration: underline;
}

.legal-footer {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.legal-footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .legal-section h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1rem;
    }
}