.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.login-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.bg-login-image {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e3c099 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.bg-login-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="bread" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M25 10 Q35 5 45 10 Q40 20 35 25 Q25 30 15 25 Q20 15 25 10" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23bread)"/></svg>');
    animation: breadFloat 15s ease-in-out infinite;
}

@keyframes breadFloat {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(10px) rotate(2deg); }
}

.login-brand {
    text-align: center;
    z-index: 1;
    position: relative;
    animation: slideInUp 1s ease-out;
}

.login-brand i {
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.logo-image {
    max-width: 200px !important;
    height: auto !important;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)) drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
    animation: logoFloat 3s ease-in-out infinite !important;
    display: block !important;
    margin: 0 auto !important;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) scale(1) !important; }
    50% { transform: translateY(-5px) scale(1.02) !important; }
}

/* Estilos específicos para o container da logomarca */
.login-brand {
    text-align: center !important;
    padding: 2rem !important;
}

.login-brand .logo-image {
    width: 200px !important;
    max-width: 200px !important;
    height: auto !important;
    object-fit: contain !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

.form-control-user {
    border-radius: 50px;
    padding: 1.2rem 1.8rem;
    border: 2px solid #e3e6f0;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-control-user:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.15), 0 4px 20px rgba(220, 53, 69, 0.2);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

.form-control-user::placeholder {
    color: #a0a0a0;
    font-weight: 400;
}

.btn-user {
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c82333 50%, #8b1538 100%);
    border: none;
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c82333 0%, #8b1538 50%, #5d0e26 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: cardSlideIn 0.8s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.text-gray-900 {
    color: #2d3748 !important;
    font-weight: 600;
    margin-bottom: 2rem !important;
    position: relative;
}

.text-gray-900::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    border-radius: 2px;
}

.small {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.small::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), #c82333);
    transition: width 0.3s ease;
}

.small:hover {
    color: #c82333;
    text-decoration: none;
    transform: translateY(-1px);
}

.small:hover::before {
    width: 100%;
}

/* Melhorias nos alertas */
.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
    animation: alertSlideIn 0.5s ease-out;
}

@keyframes alertSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Melhorias no checkbox */
.custom-control-label {
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}

.custom-control-label:hover {
    color: var(--primary-color);
}

/* Efeitos de loading no formulário */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group:nth-child(1) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.form-group:nth-child(2) {
    animation: slideInLeft 0.6s ease-out 0.4s both;
}

.form-group:nth-child(3) {
    animation: slideInLeft 0.6s ease-out 0.6s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .card {
        margin: 1rem;
        border-radius: 15px;
    }
    
    .form-control-user {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .btn-user {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .login-brand h2 {
        font-size: 1.8rem;
    }
    
    .login-brand i {
        font-size: 2.5rem !important;
    }
}