/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Gradiente do lado esquerdo */
.bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.bg-primary-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Container do formulário */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Inputs customizados */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #667eea;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.input-group-text + .form-control {
    border-left: 2px solid #e9ecef;
}

/* Botão de alternar visibilidade da senha */
#togglePassword {
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 10px 10px 0;
    color: #6c757d;
    transition: all 0.3s ease;
}

#togglePassword:hover {
    background-color: #f8f9fa;
    color: #667eea;
}

/* Botões */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

/* Checkbox customizado */
.form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

/* Links */
a {
    color: #667eea;
    transition: all 0.3s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: underline !important;
}

/* Labels */
.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
}

/* Alertas customizados */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    font-size: 14px;
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* Modal customizado */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-footer {
    border-top: 2px solid #f8f9fa;
}

/* Ícones */
.fa-user-circle {
    color: #667eea;
}

/* Linha divisória */
hr {
    border-top: 2px solid #f8f9fa;
    opacity: 1;
}

/* Spinners */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Responsividade */
@media (max-width: 991.98px) {
    .login-container {
        margin: 20px;
        padding: 30px 25px;
    }
}

@media (max-width: 575.98px) {
    .login-container {
        margin: 10px;
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Animação suave para elementos */
.login-container > * {
    animation: fadeIn 0.5s ease;
}

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

/* Efeito hover nos inputs */
.input-group:hover .input-group-text {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.input-group:hover .form-control {
    border-color: #667eea;
}

/* Botão desabilitado */
.btn-primary:disabled {
    background: linear-gradient(135deg, #a0a0a0 0%, #808080 100%);
    cursor: not-allowed;
    transform: none;
}

/* Texto do modal */
.modal-body p {
    font-size: 14px;
}