/**
 * CSS para MODELO FINAL.png
 * Layout split-screen com esquema azulado e dashboard ilustrativo
 */

/* ========================================
   LAYOUT PRINCIPAL - MODELO FINAL
======================================== */

/* Container principal */
.final-layout-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    position: relative;
    overflow: hidden;
}

.final-layout-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Layout Split-Screen */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    width: 100%;
    max-width: 1400px;
    min-height: 600px;
    position: relative;
    z-index: 1;
}

/* ========================================
   SEÇÃO DE LOGIN (ESQUERDA)
======================================== */

.login-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-3xl);
    padding: var(--space-6);
    width: 100%;
    max-width: 100%;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    transition: all 0.3s ease;
}

.login-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.15),
        0 20px 20px -5px rgba(0, 0, 0, 0.04);
}

/* Header do Login */
.login-header {
    text-align: left;
    margin-bottom: var(--space-6);
}

.login-title {
    font-size: var(--text-title);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-3);
    letter-spacing: -0.025em;
}

.login-subtitle {
    font-size: var(--text-subtitle);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   FORMULÁRIO DE LOGIN
======================================== */

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

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

.input-icon {
    position: absolute;
    left: var(--space-3);
    color: var(--gray-400);
    font-size: var(--text-sm);
    z-index: 2;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: 400;
    background: var(--gray-50);
    transition: all 0.2s ease;
    color: var(--gray-900);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--primary-500);
}

.form-input::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

/* Checkbox personalizado */
.form-options {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: var(--space-1) 0;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    cursor: pointer;
    font-size: var(--text-sm);
    color: var(--gray-700);
    user-select: none;
}

.remember-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}

.checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

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

.remember-checkbox input[type="checkbox"]:checked + .checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* Botão de Login */
.login-button {
    width: 100%;
    padding: var(--space-3);
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    margin: var(--space-2) 0;
}

.login-button:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button .button-loading {
    display: none;
}

.login-button.loading .button-text {
    opacity: 0;
}

.login-button.loading .button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Links do Login */
.login-links {
    text-align: center;
    margin: var(--space-3) 0;
}

.signup-text {
    font-size: var(--text-info);
    color: var(--gray-600);
    margin-bottom: var(--space-2);
}

.signup-link,
.forgot-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link:hover,
.forgot-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

.forgot-link {
    font-size: var(--text-info);
    display: block;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: var(--space-4) 0;
    color: var(--gray-400);
    font-size: var(--text-sm);
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.divider span {
    padding: 0 var(--space-4);
}

/* Social Login */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.social-btn {
    height: 42px;
    padding: 0 var(--space-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--gray-700);
    font-size: var(--text-sm);
    font-weight: 500;
    min-width: 120px;
}

.social-btn:hover {
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.social-btn .social-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Estilos específicos para botões brasileiros */
.acesso-gov-btn {
    border-color: #1B4332;
    color: #1B4332;
}

.acesso-gov-btn:hover {
    background: #1B4332;
    color: white;
    border-color: #1B4332;
}

.acesso-gov-icon svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.certificate-btn {
    border-color: #B8860B;
    color: #B8860B;
}

.certificate-btn:hover {
    background: #B8860B;
    color: white;
    border-color: #B8860B;
}

.certificate-btn:hover .certificate-icon i {
    color: white !important;
}

.certificate-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-btn:hover {
    border-color: #4285F4;
    background: #4285F4;
    color: white;
}

.facebook-btn {
    border-color: #1877F2;
    color: #1877F2;
}

.facebook-btn:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

/* ========================================
   SEÇÃO DA EMPRESA (DIREITA)
======================================== */

.company-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 25%, #1e40af 50%, #1e3a8a 75%, #172554 100%);
    border-radius: var(--radius-3xl);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    isolation: isolate; /* Criar novo contexto de stacking */
}

/* Estilos específicos para o wallpaper */
.company-wallpaper {
    mix-blend-mode: soft-light; /* Blend mais visível com o background */
    pointer-events: none; /* Não interferir com interações */
}

/* Adicionar uma camada de gradiente sobre o wallpaper para melhor integração */
.company-wallpaper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(29, 78, 216, 0.25) 50%, 
        rgba(30, 58, 138, 0.3) 100%
    );
    pointer-events: none;
}

.company-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.company-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Logo da Empresa */
.company-logo-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.company-logo-circle:hover {
    transform: scale(1.05);
}

.company-logo-circle img {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

/* Nome da Empresa */
.company-brand-name {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-6);
    letter-spacing: -0.025em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.dashboard-illustration {
    margin-bottom: var(--space-8);
    perspective: 1000px;
}

.dashboard-window {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--space-1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
    width: 270px;
    height: 170px;
}

.dashboard-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.window-controls {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f57; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #28ca42; }

.dashboard-content {
    padding: var(--space-4);
    display: flex;
    gap: var(--space-4);
    align-items: center;
    justify-content: space-around;
    height: calc(100% - 40px);
}

/* Gráficos */
.chart-container {
    display: flex;
    gap: var(--space-3);
    align-items: center;
}

.pie-chart {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(
        #ef4444 0deg 90deg,
        #f59e0b 90deg 180deg,
        #10b981 180deg 270deg,
        #3b82f6 270deg 360deg
    );
    position: relative;
    animation: pieRotate 4s ease-in-out infinite;
}

.donut-chart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: conic-gradient(
        #8b5cf6 0deg 120deg,
        #06b6d4 120deg 240deg,
        #f59e0b 240deg 360deg
    );
    position: relative;
    animation: donutRotate 3s ease-in-out infinite reverse;
}

.donut-chart::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
}

@keyframes pieRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes donutRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
}

.bar-chart {
    display: flex;
    align-items: end;
    gap: var(--space-1);
    height: 60px;
}

.bar {
    width: 8px;
    border-radius: var(--radius-sm);
    animation: barGrow 2s ease-in-out infinite;
}

.bar-1 { 
    height: 30px; 
    background: #ef4444;
    animation-delay: 0s;
}
.bar-2 { 
    height: 45px; 
    background: #f59e0b;
    animation-delay: 0.2s;
}
.bar-3 { 
    height: 60px; 
    background: #10b981;
    animation-delay: 0.4s;
}
.bar-4 { 
    height: 25px; 
    background: #3b82f6;
    animation-delay: 0.6s;
}
.bar-5 { 
    height: 40px; 
    background: #8b5cf6;
    animation-delay: 0.8s;
}

@keyframes barGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.2); }
}

/* ========================================
   INFORMAÇÕES DA EMPRESA
======================================== */

.company-info-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-3);
}

.company-legal-name {
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.company-website {
    font-size: var(--text-lg);
    font-weight: 600;
    color: #fbbf24;
    text-decoration: none;
    transition: color 0.2s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.company-website:hover {
    color: #f59e0b;
    text-decoration: underline;
}

/* ========================================
   ELEMENTOS DECORATIVOS
======================================== */

.decorative-dots {
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
    opacity: 0.3;
}

.dot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
}

.dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}

.dot:nth-child(odd) {
    animation-delay: 0.5s;
}

@keyframes dotPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   MODAIS PREMIUM
======================================== */

/* Modal Premium Overlay */
.modal-overlay-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay-premium.active {
    opacity: 1;
    visibility: visible;
}

/* Container Premium - 90% da tela */
.modal-container-premium {
    background: white;
    border-radius: var(--radius-3xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 90vw;
    height: 90vh;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.85) translateY(40px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.modal-overlay-premium.active .modal-container-premium {
    transform: scale(1) translateY(0);
}

/* Header Premium */
.modal-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.modal-title-section {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.modal-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: var(--text-xl);
    box-shadow: 0 8px 16px -4px rgba(59, 130, 246, 0.3);
}

.modal-title-content h2 {
    font-size: var(--text-title);
    font-weight: 800;
    color: var(--gray-900);
    margin: 0 0 var(--space-1) 0;
    letter-spacing: -0.025em;
}

.modal-subtitle {
    font-size: var(--text-subtitle);
    color: var(--gray-600);
    margin: 0;
    line-height: 1.5;
}

.modal-close-premium {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-close-premium:hover {
    background: white;
    color: var(--gray-700);
    transform: scale(1.05);
}

/* Body Premium */
.modal-body-premium {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-6) var(--space-8);
    background: #fafbfc;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: var(--radius-2xl);
    margin-bottom: var(--space-6);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-100);
}

.form-section-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--gray-100);
}

.section-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-600);
    font-size: var(--text-lg);
}

.section-title {
    font-size: var(--text-subtitle);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
    letter-spacing: -0.025em;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6);
}

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

@media (min-width: 1024px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }
}

/* Form Groups Premium */
.form-group-premium {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-label-premium {
    font-size: var(--text-caption);
    font-weight: 600;
    color: var(--gray-700);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.required {
    color: var(--error-500);
    font-weight: 700;
}

/* Input Containers */
.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-premium {
    position: absolute;
    left: var(--space-4);
    color: var(--gray-400);
    font-size: var(--text-sm);
    z-index: 2;
    transition: color 0.2s ease;
}

.form-input-premium {
    width: 100%;
    padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: 400;
    background: white;
    transition: all 0.2s ease;
    color: var(--gray-900);
    line-height: 1.5;
}

.form-input-premium:focus {
    outline: none;
    border-color: var(--primary-500);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input-premium:focus + .input-icon-premium,
.input-container:focus-within .input-icon-premium {
    color: var(--primary-500);
}

.form-input-premium::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

/* Select Premium */
select.form-input-premium {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right var(--space-3) center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: var(--space-10);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: var(--space-4);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: var(--space-1);
    transition: color 0.2s ease;
    z-index: 2;
}

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

/* Field Hints */
.field-hint {
    font-size: var(--text-xs);
    color: var(--gray-500);
    margin-top: var(--space-1);
    font-style: italic;
}

/* Password Strength */
.password-strength {
    margin-top: var(--space-2);
    height: 4px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    overflow: hidden;
}

.password-strength.weak {
    background: linear-gradient(to right, var(--error-500) 33%, var(--gray-200) 33%);
}

.password-strength.medium {
    background: linear-gradient(to right, var(--warning-500) 66%, var(--gray-200) 66%);
}

.password-strength.strong {
    background: var(--success-500);
}

/* Password Match */
.password-match {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.password-match.match {
    color: var(--success-600);
}

.password-match.no-match {
    color: var(--error-600);
}

/* Terms Section */
.terms-section {
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark-premium {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.checkmark-premium::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
}

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

.checkbox-container input[type="checkbox"]:checked + .checkmark-premium::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-text {
    font-size: var(--text-sm);
    color: var(--gray-700);
    line-height: 1.6;
}

.terms-link {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.terms-link:hover {
    color: var(--primary-700);
    text-decoration: underline;
}

/* Footer Premium */
.modal-footer-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-8);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-top: 1px solid var(--gray-200);
    flex-shrink: 0;
}

.modal-actions-premium {
    display: flex;
    gap: var(--space-3);
}

.btn-primary-premium,
.btn-secondary-premium {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    min-width: 140px;
    justify-content: center;
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
    box-shadow: 0 4px 12px -2px rgba(59, 130, 246, 0.3);
}

.btn-primary-premium:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
}

.btn-secondary-premium {
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-secondary-premium:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.form-info {
    font-size: var(--text-xs);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

/* Modal Responsivo */
@media (max-width: 768px) {
    .modal-container-premium {
        width: 95vw;
        height: 95vh;
    }
    
    .modal-header-premium,
    .modal-body-premium,
    .modal-footer-premium {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .modal-actions-premium {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary-premium,
    .btn-secondary-premium {
        width: 100%;
    }
    
    .modal-footer-premium {
        flex-direction: column;
        gap: var(--space-3);
        align-items: stretch;
    }
    
    .modal-title-content h2 {
        font-size: var(--text-title);
    }
}

@media (max-width: 480px) {
    .modal-container-premium {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .modal-header-premium {
        padding: var(--space-4);
    }
    
    .modal-title-section {
        gap: var(--space-3);
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
}

/* Modal Overlay Antigo (para forgot-password) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-6) var(--space-6) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: var(--text-title);
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

.modal-body {
    padding: var(--space-6);
}

.modal-description {
    color: var(--gray-600);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.modal-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: flex-end;
    margin-top: var(--space-6);
}

.btn-primary,
.btn-secondary {
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    position: relative;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Estados de loading para botões */
.btn-primary.loading,
.btn-secondary.loading {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
    color: transparent;
}

.btn-primary.loading::after,
.btn-secondary.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.btn-primary.loading::after {
    border-top-color: white;
}

.btn-secondary.loading::after {
    border-top-color: var(--gray-700);
}

/* ========================================
   ANIMAÇÕES
======================================== */

/* Animações para notificações */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

/* Animações para mensagem "Em Breve" */
@keyframes bounceIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes bounceOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
}

/* ========================================
   ANIMAÇÕES PARA WALLPAPER
======================================== */

@keyframes wallpaperFloat {
    0%, 100% {
        transform: scale(1) translateY(0);
        filter: brightness(1.5) contrast(0.9);
    }
    25% {
        transform: scale(1.05) translateY(-10px);
        filter: brightness(1.6) contrast(0.85);
    }
    50% {
        transform: scale(1.02) translateY(5px);
        filter: brightness(1.5) contrast(0.9);
    }
    75% {
        transform: scale(1.08) translateY(-5px);
        filter: brightness(1.4) contrast(0.95);
    }
}

/* Wallpaper com efeito parallax suave */
.company-wallpaper {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.company-section:hover .company-wallpaper {
    transform: scale(1.02);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

@media (max-width: 1024px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .company-section {
        order: -1;
        min-height: 300px;
    }
    
    .dashboard-window {
        width: 280px;
        height: 180px;
    }
    
    .company-brand-name {
        font-size: var(--text-2xl);
    }
}

@media (max-width: 768px) {
    .final-layout-container {
        padding: var(--space-1);
    }
    
    .split-layout {
        gap: var(--space-3);
    }
    
    .login-card,
    .company-section {
        padding: var(--space-3);
    }
    
    .login-title {
        font-size: var(--text-title);
    }
    
    .company-logo-circle {
        width: 68px;
        height: 68px;
    }
    
    .company-logo-circle img {
        width: 34px;
        height: 34px;
    }
    
    .dashboard-window {
        width: 204px;
        height: 128px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
        gap: var(--space-1);
    }
    
    .social-btn {
        height: 37px;
        font-size: 11px;
        padding: 0 var(--space-2);
        min-width: 85px;
    }
    
    .social-btn span {
        display: none;
    }
    
    .social-btn .acesso-gov-icon svg {
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: var(--space-2);
    }
    
    .login-title {
        font-size: var(--text-title);
    }
    
    .login-subtitle {
        font-size: var(--text-info);
    }
    
    .dashboard-window {
        width: 170px;
        height: 102px;
    }
    
    .company-brand-name {
        font-size: var(--text-base);
    }
    
    .company-legal-name {
        font-size: var(--text-sm);
    }
    
    .company-website {
        font-size: var(--text-xs);
    }
    
    .social-login {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-1);
    }
    
    .social-btn {
        height: 34px;
        font-size: 10px;
        padding: 0 var(--space-1);
        min-width: 68px;
    }
    
    .social-btn span {
        font-size: 9px;
    }
}

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

/* Separador OAuth */
.oauth-separator {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0 var(--space-4) 0;
    opacity: 0.8;
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--gray-300) 50%, transparent 100%);
}

.separator-text {
    padding: 0 var(--space-4);
    font-size: var(--text-sm);
    color: var(--gray-500);
    font-weight: 500;
    text-transform: lowercase;
}

/* Container dos botões OAuth */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

/* Botão OAuth base */
.oauth-button {
    width: 100%;
    padding: var(--space-3);
    background: white;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    position: relative;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.oauth-button:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px -2px rgba(0, 0, 0, 0.15);
}

.oauth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.oauth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Botão Google específico */
.google-button {
    border-color: #dadce0;
    display: flex; /* Mostrar por padrão */
}

.google-button:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.google-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
}

/* Botão Microsoft específico */
.microsoft-button {
    border-color: #dadce0;
    display: flex; /* Mostrar por padrão */
}

.microsoft-button:hover {
    background: #f8f9fa;
    border-color: #0078d4;
    box-shadow: 0 1px 3px rgba(0, 120, 212, 0.12), 0 1px 2px rgba(0, 120, 212, 0.24);
}

.microsoft-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.2);
}

/* Ícone OAuth */
.oauth-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Texto OAuth */
.oauth-text {
    font-size: var(--text-caption);
    font-weight: 500;
    color: var(--gray-700);
}

/* Loading OAuth */
.oauth-loading {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: inherit;
}

.oauth-button.loading .oauth-text,
.oauth-button.loading .oauth-icon {
    opacity: 0;
}

.oauth-button.loading .oauth-loading {
    display: flex;
}

.oauth-loading i {
    color: var(--primary-500);
    font-size: var(--text-base);
}

/* Animação spin para loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}