﻿/* ===== BACKGROUND COM CROSSFADE E ZOOM ===== */
.common-img-bg {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a2e;
    --bg-current: url('../images/login/1.png');
    --bg-next: url('../images/login/2.png');
}

.common-img-bg::before,
.common-img-bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    transition: opacity 1.8s ease-in-out;
    animation: zoomEffect 20s ease-in-out infinite;
}

.common-img-bg::before {
    background-image:
        radial-gradient(ellipse at center, rgba(20, 20, 60, 0.4) 0%, rgba(20, 20, 60, 0.8) 100%),
        var(--bg-current);
    opacity: 1;
}

.common-img-bg::after {
    background-image:
        radial-gradient(ellipse at center, rgba(20, 20, 60, 0.4) 0%, rgba(20, 20, 60, 0.8) 100%),
        var(--bg-next);
    opacity: 0;
}

.common-img-bg.fade-bg::after {
    opacity: 1;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

/* Conteúdo acima do fundo */
.common-img-bg > * {
    position: relative;
    z-index: 10;
}

/* ===== CONTAINER E POSICIONAMENTO ===== */
.common-img-bg .container {
    margin: 0 auto;
    padding: 0;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#AutenticacaoLogin,
#Autenticacao2FA {
    padding: 0;
    margin-right: auto;
    margin-left: auto;
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CARD GLASSMORPHISM ===== */
.auth-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 40px 35px;
    color: #fff;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.md-float-material {
    opacity: 1;
}

/* ===== TIPOGRAFIA ===== */
.div-imagem h2,
.div-imagem h3 {
    margin-top: 10px;
    margin-bottom: 5px;
    color: #fff;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.custom-style {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 16px;
}

/* ===== INPUTS ===== */
.auth-box .form-control {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    height: auto;
}

.auth-box .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-box .form-control:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(219, 158, 54, 0.6);
    box-shadow: 0 0 0 3px rgba(219, 158, 54, 0.15);
    outline: none;
    color: #fff;
}

.auth-box .input-group {
    margin-bottom: 18px;
}

.auth-box .md-line {
    display: none;
}

/* ===== BOTÕES ===== */
.auth-box .btn-warning {
    background: linear-gradient(135deg, #db9e36, #e6b84d);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a1a2e;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(219, 158, 54, 0.3);
}

.auth-box .btn-warning:hover {
    background: linear-gradient(135deg, #e6b84d, #f0c860);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(219, 158, 54, 0.4);
}

.auth-box .btn-warning:active {
    transform: translateY(0);
}

/* ===== LINKS ===== */
.auth-box a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.auth-box a:hover {
    color: #e6b84d;
}

.forgot-phone a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7) !important;
}

.forgot-phone a:hover {
    color: #e6b84d !important;
}

/* ===== SEPARADORES ===== */
.auth-box hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

/* ===== FOOTER DO CARD ===== */
.auth-box .text-white {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* ===== LOGO ===== */
.auth-box img {
    filter: brightness(1.1);
    transition: transform 0.3s ease;
}

.auth-box .text-center img:hover {
    transform: scale(1.05);
}

/* ===== RECAPTCHA INVISIBLE - ESCONDE O BADGE ===== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed !important;
    bottom: -100px !important;
}

/* ===== RESPONSIVO ===== */
@media (max-width: 992px) {
    #AutenticacaoLogin,
    #Autenticacao2FA {
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .auth-box {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .auth-box .btn-warning {
        padding: 10px;
        font-size: 14px;
    }
}
