/* css/login-moderno.css */
@font-face {
    font-family: Poppins-Regular;
    src: url(../fonts/Poppins-Regular.ttf);
}

@font-face {
    font-family: Poppins-Medium;
    src: url(../fonts/Poppins-Medium.ttf);
}

@font-face {
    font-family: Poppins-Bold;
    src: url(../fonts/Poppins-Bold.ttf);
}

@font-face {
    font-family: Poppins-SemiBold;
    src: url(../fonts/Poppins-SemiBold.ttf);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: Poppins-Regular, sans-serif;
}

/* Container principal do login */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
}

.login-body {
    padding: 2rem;
}

/* Estilos dos formulários */
.form-floating {
    margin-bottom: 1rem;
}

.form-floating .form-control {
    font-family: Poppins-Regular;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-floating .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-floating label {
    font-family: Poppins-Regular;
    color: #6c757d;
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #667eea;
    font-weight: 500;
}

/* Botões */
.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 12px;
    font-weight: 600;
    font-family: Poppins-Medium;
    width: 100%;
    margin-bottom: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-toggle {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 10px;
    font-weight: 600;
    font-family: Poppins-Medium;
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-toggle:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Links */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: #667eea;
    text-decoration: none;
    font-family: Poppins-Regular;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Alertas e mensagens */
.alert {
    border-radius: 10px;
    border: none;
    font-family: Poppins-Regular;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f1b0b7 100%);
    color: #721c24;
    border: 1px solid #f1b0b7;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Containers de formulário */
.form-container {
    display: none;
}

.form-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Validação */
.invalid-feedback {
    display: block;
    font-family: Poppins-Regular;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

/* Loading states */
.btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Títulos */
.login-body h5 {
    font-family: Poppins-SemiBold;
    color: #495057;
    margin-bottom: 1.5rem;
}

.login-header h4 {
    font-family: Poppins-Bold;
    margin-bottom: 0.5rem;
}

.login-header p {
    font-family: Poppins-Regular;
    opacity: 0.9;
}

/* Responsividade */
@media (max-width: 576px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        max-width: 100%;
    }
    
    .login-body {
        padding: 1.5rem;
    }
    
    .login-header {
        padding: 1.5rem;
    }
    
    .login-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 400px) {
    .login-body {
        padding: 1rem;
    }
    
    .login-header {
        padding: 1rem;
    }
    
    .btn-login,
    .btn-toggle {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Acessibilidade */
.btn:focus,
.form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25);
}

/* Animações adicionais */
@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

/* Efeitos de hover para cards */
.login-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Estilos para ícones */
.bi {
    vertical-align: -0.125em;
}

/* Utilitários */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Estados de loading */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}