/* Páginas de Autenticação */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #8B1538 0%, #6B0F2A 100%);
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    animation: authFadeIn 0.6s ease;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.auth-header h1 {
    color: #333;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: #6c757d;
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form .form-group:last-of-type {
    margin-bottom: 30px;
}

.auth-form input {
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
    transform: translateY(-2px);
}

.auth-form select {
    border: 2px solid #e9ecef;
    padding: 15px;
    font-size: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    appearance: none;
    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 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.auth-form select:focus {
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.1);
}

.auth-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.auth-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.3);
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.auth-links a {
    color: #8B1538;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-links a:hover {
    color: #6B0F2A;
    text-decoration: underline;
}

/* Container de Input de Senha */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #6c757d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    background: #f8f9fa;
    color: #333;
}

.password-requirements {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
    line-height: 1.4;
}

/* Responsivo */
@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .auth-logo {
        width: 60px;
        height: 60px;
    }
    
    .auth-header h1 {
        font-size: 1.8rem;
    }
    
    .auth-form input,
    .auth-form select {
        padding: 12px;
    }
    
    .auth-form .btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Estilos de Validação de Formulário */
.form-group.error input,
.form-group.error select {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-group.error .error-message {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

.form-group.success input,
.form-group.success select {
    border-color: #28a745;
    background-color: #f8fff9;
}

/* Estado de carregamento para formulários */
.auth-form.loading .btn {
    position: relative;
    color: transparent;
}

.auth-form.loading .btn::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}