/* =========================
   RESET E CONFIGURAÇÕES GLOBAIS
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Tema claro (padrão) */
    --bg-body: #f5f7fa;
    --bg-main: #ffffff;
    --text-heading: #0f172a;
    --text-body: #64748b;
    --text-secondary: #94a3b8;
    --border-light: #e2e8f0;
    --input-bg: #f8fafc;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #22c55e;
    --success-hover: #16a34a;
    --warning: #f59e0b;
    --danger: #ef4444;
}

body.dark-mode {
    /* Tema escuro */
    --bg-body: #0f172a;
    --bg-main: #1e293b;
    --text-heading: #f1f5f9;
    --text-body: #cbd5e1;
    --text-secondary: #94a3b8;
    --border-light: #334155;
    --input-bg: #334155;
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --success: #22c55e;
    --success-hover: #15803d;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-body);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container principal */
.main-container {
    display: flex;
    width: 100%;
    max-width: 1400px;
    background: var(--bg-main);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    min-height: 700px;
    transition: background-color 0.3s ease;
}

/* Lado esquerdo */
.form-section {
    flex: 1;
    width: 50%;
    position: relative;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    transition: background-color 0.3s ease;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Logo */
.logo-container {
    margin-bottom: 40px;
    text-align: center;
}

.logo-container img {
    height: 80px;
    width: auto;
}

/* Header message */
.header-message {
    margin-bottom: 32px;
    text-align: center;
}

.header-message h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-heading);
}

.header-message p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
}

/* Formulário */
.reset-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container i {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 18px;
    pointer-events: none;
}

.input-container input {
    width: 100%;
    height: 48px;
    padding: 0 48px;
    border: 1.5px solid var(--border-light);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: var(--input-bg);
    color: var(--text-heading);
    transition: all 0.2s ease;
}

.input-container input::placeholder {
    color: var(--text-secondary);
}

.input-container input:hover {
    border-color: var(--primary);
}

.input-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Alert messages */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert.success {
    background: rgba(34, 197, 94, 0.1);
    border-left: 3px solid var(--success);
    color: var(--success);
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--danger);
    color: var(--danger);
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.alert li {
    margin-bottom: 4px;
}

/* Botão principal */
.btn-primary {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Links */
.links {
    text-align: center;
    font-size: 14px;
}

.links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.links a:hover {
    color: var(--primary-hover);
    gap: 10px;
}

/* Copyright */
.copyright {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Lado direito */
.info-section {
    flex: 1;
    width: 50%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 64px;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="85" r="2" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.info-wrapper {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
}

.info-header {
    margin-bottom: 40px;
    text-align: left;
}

.info-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.info-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

/* Features */
.features-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    font-size: 22px;
    color: #3b82f6;
}

.feature-text {
    flex: 1;
}

.feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Support box */
.support-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

.support-box i {
    font-size: 32px;
    color: #facc15;
}

.support-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
}

.support-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.support-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.support-link:hover {
    text-decoration: underline;
}

/* Theme toggle */
.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 10;
    background: var(--bg-main);
    padding: 8px 12px;
    border-radius: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle .material-icons {
    cursor: pointer;
    font-size: 22px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle .material-icons:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.light-mode, .dark-mode {
    display: none;
}

body:not(.dark-mode) .light-mode {
    display: none;
}

body:not(.dark-mode) .dark-mode {
    display: block;
}

body.dark-mode .light-mode {
    display: block;
}

body.dark-mode .dark-mode {
    display: none;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-main);
    color: var(--text-heading);
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-left: 4px solid var(--success);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Animações */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-container {
    animation: fadeUp 0.5s ease;
}

.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsividade */
@media (max-width: 1024px) {
    .form-section,
    .info-section {
        padding: 40px 48px;
    }
    
    .info-header h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        border-radius: 24px;
        min-height: auto;
    }
    
    .form-section,
    .info-section {
        width: 100%;
        padding: 40px 32px;
    }
    
    .form-wrapper,
    .info-wrapper {
        max-width: 100%;
    }
    
    .info-header {
        text-align: center;
    }
    
    .info-header h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .info-subtitle {
        text-align: center;
    }
    
    .theme-toggle {
        top: 16px;
        right: 16px;
        padding: 6px 10px;
    }
}

@media (max-width: 480px) {
    .form-section,
    .info-section {
        padding: 32px 24px;
    }
    
    .logo-container img {
        height: 60px;
    }
    
    .header-message h1 {
        font-size: 24px;
    }
    
    .info-header h2 {
        font-size: 24px;
    }
    
    .feature-item {
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .feature-icon {
        width: 36px;
        height: 36px;
    }
    
    .feature-icon i {
        font-size: 18px;
    }
    
    .feature-text h4 {
        font-size: 15px;
    }
    
    .feature-text p {
        font-size: 13px;
    }
}
/* CORREÇÃO URGENTE - CORES VISÍVEIS NO MODO ESCURO */
body.dark-mode,
body.dark-mode .main-container,
body.dark-mode .form-section,
body.dark-mode .form-wrapper {
    background-color: #0f172a !important;
}

body.dark-mode .main-container {
    background-color: #1e293b !important;
}

body.dark-mode .header-message h1 {
    color: #ffffff !important;
}

body.dark-mode .header-message p,
body.dark-mode p {
    color: #cbd5e1 !important;
}

body.dark-mode .form-group label {
    color: #e2e8f0 !important;
}

body.dark-mode .input-container input {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .input-container input::placeholder {
    color: #94a3b8 !important;
}

body.dark-mode .input-container i {
    color: #94a3b8 !important;
}

body.dark-mode .btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    color: white !important;
}

body.dark-mode .links a {
    color: #60a5fa !important;
}

body.dark-mode .copyright {
    color: #94a3b8 !important;
}

body.dark-mode .info-section {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
}

body.dark-mode .info-section h2 {
    color: white !important;
}

body.dark-mode .info-section p {
    color: #cbd5e1 !important;
}

body.dark-mode .feature-text h4 {
    color: white !important;
}

body.dark-mode .feature-text p {
    color: #cbd5e1 !important;
}