html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2a69ac 100%) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Estilos específicos para a tela de login */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2a69ac 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    /* Padrão de grade sutil no fundo */
    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        z-index: 0;
    }

/* Elementos decorativos profissionais */
.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.decoration-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.decoration-item-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    border-radius: 10px;
    transform: rotate(45deg);
    animation-delay: 0s;
}

.decoration-item-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    right: 12%;
    border-radius: 50%;
    animation-delay: 3s;
}

.decoration-item-3 {
    width: 100px;
    height: 100px;
    top: 25%;
    right: 25%;
    border-radius: 10px;
    transform: rotate(-30deg);
    animation-delay: 6s;
}

/* Ícones contábeis decorativos */
.decoration-item-4 {
    width: 60px;
    height: 60px;
    top: 80%;
    left: 15%;
    background: rgba(72, 187, 120, 0.1);
    border-radius: 50%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-15px) rotate(5deg);
    }

    50% {
        transform: translateY(-30px) rotate(0deg);
    }

    75% {
        transform: translateY(-15px) rotate(-5deg);
    }
}

/* Card de login profissional */
.login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

    /* Barra superior elegante */
    .login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 5px;
        background: linear-gradient(90deg, #1a365d 0%, #2c5282 30%, #48bb78 50%, #2c5282 70%, #1a365d 100%);
    }

    .login-card .card-body {
        padding: 45px 40px;
        color: #2d3748;
        background: linear-gradient(145deg, #ffffff 0%, #f7fafc 100%);
    }

    /* Logo e título profissional */
    .login-card .text-center img {
        filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
        margin-bottom: 25px;
        max-height: 120px;
        max-width: 200px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .login-card h4 {
        color: #1a365d;
        font-weight: 700;
        margin-bottom: 8px;
        font-size: 1.5rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .login-card .text-muted {
        color: #4a5568 !important;
        font-size: 14px;
        font-weight: 500;
    }

/* Seção de destaque profissional */
.professional-badge {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(72, 187, 120, 0.3);
}

/* Formulário elegante */
.login-card .form-label {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.login-card .input-group-text {
    background: linear-gradient(145deg, #edf2f7 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    color: #4a5568;
    border-right: none;
    font-weight: 500;
}

.login-card .form-control {
    border: 2px solid #e2e8f0;
    border-left: none;
    background: #ffffff;
    color: #2d3748;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .login-card .form-control:focus {
        border-color: #2c5282;
        box-shadow: 0 0 0 0.25rem rgba(44, 82, 130, 0.15);
        background: #f7fafc;
    }

.login-card .input-group:focus-within .input-group-text {
    border-color: #2c5282;
    background: linear-gradient(145deg, #e6f3ff 0%, #dbeafe 100%);
    color: #2c5282;
}

/* Checkbox profissional */
.login-card .form-check-input:checked {
    background-color: #2c5282;
    border-color: #2c5282;
}

.login-card .form-check-input:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 0.25rem rgba(44, 82, 130, 0.15);
}

.login-card .form-check-label {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

/* Botão de login profissional */
.login-button {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #2a69ac 100%);
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(26, 54, 93, 0.3);
}

    .login-button::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;
    }

    .login-button:hover::before {
        left: 100%;
    }

    .login-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(26, 54, 93, 0.4);
        background: linear-gradient(135deg, #2c5282 0%, #2a69ac 50%, #3182ce 100%);
    }

    .login-button:active {
        transform: translateY(-1px);
    }

/* Links profissionais */
.login-card a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

    .login-card a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: linear-gradient(90deg, #2c5282, #48bb78);
        transition: width 0.3s ease;
    }

    .login-card a:hover::after {
        width: 100%;
    }

    .login-card a:hover {
        color: #1a365d;
    }

.login-card .text-muted a {
    color: #718096 !important;
    font-weight: 500;
}

    .login-card .text-muted a:hover {
        color: #2c5282 !important;
    }

/* Rodapé elegante */
.login-card .border-top {
    border-color: #e2e8f0 !important;
    border-width: 2px !important;
}

.login-card .small {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

/* Badge de segurança */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    border: 1px solid #9ae6b4;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 12px;
    color: #2f855a;
    font-weight: 600;
}

    .security-badge::before {
        content: '🔒';
        font-size: 14px;
    }

/* Responsividade */
@media (max-width: 576px) {
    .login-container {
        padding: 15px;
    }

    .login-card .card-body {
        padding: 35px 25px;
    }

    .decoration-item-1,
    .decoration-item-3 {
        display: none;
    }

    .decoration-item-2 {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
        margin: 0 10px;
    }

    .login-button {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* Força tema profissional */
.login-container,
.login-card,
.login-card .card-body,
.login-card .form-control,
.login-card .input-group-text {
    background-color: #ffffff !important;
    color: #2d3748 !important;
}

.login-card {
    background: rgba(255, 255, 255, 0.98) !important;
}

    /* Efeitos de hover suaves */
    .login-card .form-control:hover {
        border-color: #cbd5e0;
        background: #f7fafc;
    }

    .login-card .input-group:hover .input-group-text {
        background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e0 100%);
    }

/* Animação sutil para o card */
.login-card {
    animation: slideInUp 0.6s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
