/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #070738;
    --secondary: #1A1A5E;
    --accent: #FE0000;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--primary);
    background-image: url('https://i.ibb.co/zhr0KpcP/fundo2.png');
    background-size: cover;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== HEADER (IDÊNTICO) ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(7, 7, 56, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

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

.logoimg {
    height: 30px;
    width: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.125rem;
    line-height: 1.2;
    color: var(--primary);
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    font-weight: 500;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.nav-desktop a:hover {
    color: var(--accent);
}

.header > .container > .btn {
    display: none;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-top: 1px solid var(--gray-200);
}

.nav-mobile.active {
    display: flex;
}

.nav-mobile a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.nav-mobile .btn {
    margin-top: 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header > .container > .btn {
        display: inline-flex;
    }
    
    .menu-toggle {
        display: none;
    }
}

/* ===== CADASTRO CONTAINER ===== */
.cadastro-container {
    padding: 140px 0 80px;
    min-height: 100vh;
}

.cadastro-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(7, 7, 56, 0.1);
    overflow: hidden;
    padding: 2rem;
}

/* ===== USER TYPE TOGGLE ===== */
.user-type-toggle {
    margin-bottom: 2rem;
    text-align: center;
}

.toggle-container {
    display: flex;
    background: var(--gray-100);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    color: var(--primary);
    background: var(--gray-200);
}

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

.toggle-btn i {
    font-size: 1.25rem;
}

.toggle-note {
    color: var(--gray-500);
    font-size: 0.9rem;
    font-style: italic;
}

/* ===== CADASTRO FORM ===== */
.cadastro-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.cadastro-form.active {
    display: block;
}

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

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* ===== FORM GRID ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent);
    width: 20px;
}

.form-group input,
.form-group select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--primary);
    background: var(--white);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.1);
}

.form-group select[multiple] {
    height: 120px;
    padding: 0.75rem;
}

.form-group small {
    margin-top: 0.25rem;
    color: var(--gray-500);
    font-size: 0.8rem;
}

/* ===== PASSWORD WRAPPER ===== */
.password-wrapper {
    position: relative;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.2s ease;
}

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

/* ===== FORM CHECKBOX ===== */
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.form-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-checkbox label {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
}

.form-checkbox a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-accent:hover {
    background-color: #e00000;
    border-color: #e00000;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ===== FORM NOTE ===== */
.form-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(254, 0, 0, 0.05);
    border-radius: 0.75rem;
    color: var(--accent);
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-note i {
    margin-top: 0.125rem;
}

/* ===== CADASTRO LOGIN ===== */
.cadastro-login {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.cadastro-login p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.cadastro-login a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.cadastro-login a:hover {
    text-decoration: underline;
}

/* ===== NOTIFICATION ===== */
.notification {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    display: none;
    animation: slideIn 0.3s ease;
}

.notification.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.notification.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CAMPO ESPECÍFICO POR TIPO ===== */
#professorFields,
#managerFields {
    display: none;
}

/* ===== FOOTER (IDÊNTICO) ===== */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(180deg, var(--primary) 0%, #050530 100%);
    color: var(--white);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--secondary), var(--primary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.logo.light .logo-name,
.logo.light .logo-subtitle {
    color: var(--white);
}

.logo.light .logo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.footer-brand > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.2s ease;
}

.social-links a:hover {
    background-color: var(--accent);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .cadastro-container {
        padding: 120px 0 40px;
    }
    
    .cadastro-wrapper {
        padding: 1.5rem;
        border-radius: 1rem;
    }
    
    .toggle-container {
        flex-direction: column;
    }
    
    .form-header h2 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
    }
}
/* NOTIFICAÇÕES FIXAS (FUNCIONAIS) */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 9999;
    max-width: 400px;
    display: none; /* Começa escondido */
    animation: slideIn 0.3s ease forwards;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.show {
    display: block; /* Mostra quando tem classe show */
}

.notification.error {
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border-left: 4px solid #ff1e1e;
}

.notification.success {
    background: linear-gradient(135deg, #2ed573, #1dd1a1);
    border-left: 4px solid #10ac84;
}

.notification.warning {
    background: linear-gradient(135deg, #ff9f43, #ff9f1a);
    border-left: 4px solid #ff7f00;
    color: #2d3436;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}