/* assets/css/login.css - VERSÃO MODERNIZADA */

:root {
    --primary: #6366f1;
    --primary-dark: #4f52e0;
    --secondary: #22c55e;
    --dark-bg: #0f172a;
    --darker-bg: #0a0f1c;
    --card-bg: #111827;
    --text-light: #f1f5f9;
    --text-muted: #94a3b8;
    --border-light: #1e293b;
    --input-bg: #1e293b;
    --error-bg: rgba(239, 68, 68, 0.1);
    --error-border: #ef4444;
    --error-text: #ef4444;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Coluna Institucional */
.institutional-col {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.institutional-col::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.institutional-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.brand {
    margin-bottom: 3rem;
}

.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.brand-icon i {
    font-size: 24px;
    color: white;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: -0.5px;
    margin: 0;
}

.institutional-text .headline {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -1px;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.institutional-text .description {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 1rem;
}

.feature-icon {
    color: var(--secondary);
    font-size: 1.1rem;
}

.institutional-footer {
    margin-top: auto;
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

/* Coluna de Login */
.login-col {
    background: var(--card-bg);
    padding: 2rem;
}

.login-card-modern {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

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

.login-title {
    font-size: 1.875rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Formulário */
.login-form {
    width: 100%;
}

.form-label-modern {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-control-modern {
    width: 100%;
    height: 48px;
    padding: 0 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: var(--input-bg);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Campo de senha com toggle */
.password-field {
    position: relative;
}

.password-field .toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
    background: transparent;
    border: none;
    padding: 0;
}

.password-field .toggle-password:hover {
    color: var(--text-light);
}

/* Botão de login */
.btn-login-modern {
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-login-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

/* Alertas */
.alert-modern {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.alert-modern.alert-danger {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: var(--error-text);
}

.text-muted-modern {
    color: var(--text-muted) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .institutional-col {
        min-height: 400px;
        padding: 2rem;
    }
    
    .institutional-text .headline {
        font-size: 2rem;
    }
    
    .login-col {
        min-height: 600px;
    }
}

@media (max-width: 767.98px) {
    .institutional-col {
        padding: 2rem 1.5rem;
    }
    
    .institutional-text .headline {
        font-size: 1.75rem;
    }
    
    .login-card-modern {
        padding: 1rem;
    }
}

@media (max-width: 575.98px) {
    .institutional-col {
        min-height: 350px;
        padding: 1.5rem;
    }
    
    .brand-icon {
        width: 40px;
        height: 40px;
    }
    
    .brand-icon i {
        font-size: 20px;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .institutional-text .headline {
        font-size: 1.5rem;
    }
    
    .features {
        display: none; /* Esconde features em mobile para não poluir */
    }
    
    .login-col {
        padding: 1.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .institutional-footer {
        font-size: 0.75rem;
    }
    
    .btn-login-modern {
        font-size: 0.875rem;
    }
}

/* Correção mobile: ocultar coluna institucional e centralizar login */
@media (max-width: 767.98px) {
    .institutional-col {
        display: none !important;
    }

    .login-col {
        width: 100%;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .login-card-modern {
        width: 100%;
        max-width: 400px;
        padding: 1.5rem;
    }
}

/* Ajuste fino para telas muito pequenas */
@media (max-width: 575.98px) {
    .login-card-modern {
        max-width: 100%;
        padding: 1.5rem;
    }
}