/* ==========================
   RESET / BASE
========================== */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* ==========================
   BACKGROUND
========================== */
.bg-video {
    position: fixed;
    inset: 0;

    /* Cor de fundo de fallback enquanto a imagem carrega */
    background-color: #111; /* tom escuro parecido com sua imagem */

    /* Fallback absoluto para navegadores antigos */
    background: url('../img/bg_login.png') center center / cover no-repeat;

    /* Navegadores modernos: prioriza WebP, depois PNG */
    background-image: image-set(
        url('../img/bg_login.webp') type('image/webp'),
        url('../img/bg_login.png') type('image/png')
    );

    /* Evita "flash" no mobile durante scroll */
    will-change: transform;
    backface-visibility: hidden;

    /* Suaviza o aparecimento do background */
    opacity: 0;
    animation: fadeBg 0.8s ease-in-out forwards;

    filter: brightness(0.45);
    z-index: -2;
}

/* Animação de fade-in do background */
@keyframes fadeBg {
    to {
        opacity: 1;
    }
}


.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: -1;
}

/* ==========================
   CONTAINER
========================== */
.container-login {
    min-height: 100svh; /* mobile safe */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
}

/* ==========================
   SLOGAN
========================== */
.slogan-area {
    width: 70%; /* evita quebras estranhas */
    word-break: break-word;
}

.slogan-area h1 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.slogan-area h3 {
    font-size: 1.8rem;
    margin-top: 15px;
    font-weight: 400;
    color: #ffffff;
}

.slogan-area h5 {
    font-size: 1rem;
    margin-top: 15px;
    font-weight: 400;
    color: #ffffff;
}

/* ==========================
   LOGIN CARD
========================== */
.login-card {
    width: 400px;
    /* background: rgba(255, 255, 255, 0.12); */
    background: rgba(17, 17, 17, 0.999);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    padding: 2.4rem;
    border-radius: 22px;
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.55),
        0 0 12px rgba(255, 255, 255, 0.20) inset;
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 10;
    animation: fadeIn .8s ease;
    color: #fff;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    filter: blur(25px);
    z-index: -1;
}

/* Logo */
.login-card img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

/* ==========================
   INPUTS
========================== */
input.form-control {
    height: 50px;
    border-radius: 12px;
    border: none;
    padding-left: 40px;
    background: rgba(255,255,255,0.22);
    color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.2) inset;
    transition: box-shadow 0.2s, background 0.2s;
}

input::placeholder {
    color: #e8e8e8cc;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #3D3D3D;
    opacity: .8;
    font-size: 1.25rem;
}

.mb-3:focus-within .input-icon {
    color: #3D3D3D;
}

input.form-control:focus {
    outline: none;
    box-shadow: 0 0 12px rgba(0, 170, 255, 0.6);
    border-radius: 12px;
}


/* ==========================
   BOTÃO
========================== */
.btn-login {
    margin-top: 12px;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #00aaff, #0066ff);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login:hover {
    opacity: .95;
    transition: .2s ease-in-out;
}

/* ==========================
   RESPONSIVO
========================== */

/* Tablets e notebooks menores */
@media (max-width: 991px) {
    .container-login {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 2.5rem 1.5rem;
    }

    .slogan-area {
        margin-bottom: 20px;
        max-width: 95%;
    }

    .slogan-area h1 {
        font-size: 2rem;
        line-height: 2.3rem;
    }

    .slogan-area h3 {
        font-size: 1.1rem;
        margin-top: 8px;
    }

    .login-card {
        width: 100%;
        max-width: 360px;
        padding: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .slogan-area {
        display: none;
    }

    .container-login {
        padding: 1.8rem 1rem;
    }

    .login-card {
        max-width: 340px;
        padding: 1.6rem;
    }

    input.form-control {
        height: 48px;
        font-size: 0.95rem;
    }

    .btn-login {
        height: 50px;
        font-size: 1.05rem;
    }
}

/* Mobile muito pequeno */
@media (max-width: 360px) {
    .login-card {
        max-width: 100%;
    }
}

/* ==========================
   SLOGAN MOBILE
========================== */
.login-slogan-mobile {
    display: none;
    text-align: center;
    margin-bottom: 1rem;
}

.login-slogan-mobile h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.login-slogan-mobile p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: #fff;
}

/* Mostra apenas no mobile */
@media (max-width: 600px) {
    .login-slogan-mobile {
        display: block;
    }
}


/* ==========================
   LINKS LOGIN
========================== */
.login-links {
    display: flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap; /* 🔥 impede quebra */
    margin-top: 15px;
    gap: 8px;
    font-size: 0.85rem;
}



.login-link-primary {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.login-link-primary:hover {
    text-decoration: underline;
}

.login-link-secondary {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}

.login-link-secondary:hover {
    text-decoration: underline;
}

.login-separator {
    margin: 0 0.4rem;
    opacity: 0.6;
}

.login-link-primary,
.login-link-secondary {
    transition: color 0.25s, text-decoration 0.25s;
}

.login-link-primary:hover,
.login-link-secondary:hover {
    color: #05b3f8;
    text-decoration: underline;
    transition: color 0.2s, text-decoration 0.2s;
}




.login-links a {
    color: #666;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links .separator {
    color: #999;
}


/* Mobile: melhora área de toque */
@media (max-width: 600px) {
    .login-links {
        font-size: 0.95rem;
    }

    .login-links a {
        padding: 0.3rem;
    }
}

/* ==========================
   LOGIN SOCIAL
========================== */
.login-social {
    text-align: center;
}

.login-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    font-size: 0.85rem;
}

.login-divider::before,
.login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.3);
}

.login-divider span {
    margin: 0 0.75rem;
}

/* Botão Google */
.btn-google-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: not-allowed;
}

.btn-google-login img {
    width: 24px;
    height: 24px;
}

.btn-google-login:hover {
    background: rgba(255,255,255,0.16);
}

/* Estado desabilitado */
.btn-google-login:disabled {
    opacity: 0.6;
}



/* Transições suaves */

.container-login, .login-card, .slogan-area {
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


