/* ============================= */
/* LOGIN - DESIGN PROFISSIONAL   */
/* ============================= */

.login-body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    font-family: 'Segoe UI', sans-serif;
    background: #0f0f0f;
}

/* CONTAINER */
.login-container {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
}

/* IMAGEM (FUNDO DIREITO) */
.login-container::after {
     content: "";
     width: 65%;
     height: 100%;
     background: linear-gradient(to left, rgba(0,0,0,0.6), rgba(0,0,0,0.9)), url('/static/img/flash_bg.jpg'); /* <-- coloque sua imagem aqui */
     background-size: cover; background-position: center; }

/* LOGIN BOX */
.login-box {
    width: 40%;
    min-width: 380px;
    height: 100%;

    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 80px 80px 80px 120px;
    box-sizing: border-box;

    /* FUNDO COM FADE REAL */
    background: linear-gradient(
        to right,
        rgba(15,15,15,1) 0%,
        rgba(15,15,15,1) 65%,
        rgba(15,15,15,0.95) 75%,
        rgba(15,15,15,0.6) 90%,
        rgba(15,15,15,0) 100%
    );
}

/* COLUNA ALINHADA */
.login-title,
.login-subtitle {
    text-align: left;
}
.input-group,
.btn-login {
    width: 100%;
    max-width: 320px;
}

/* TÍTULO */
.login-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    margin-left: 30px;
    letter-spacing: 1.5px;
}

.login-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 100%;

    background:
        linear-gradient(
            to right,
            #0f0f0f 0%,
            rgba(15,15,15,0.95) 20%,
            rgba(15,15,15,0.8) 40%,
            rgba(15,15,15,0.5) 60%,
            rgba(15,15,15,0.2) 80%,
            rgba(15,15,15,0) 100%
        ),
        url('/static/img/flash_bg.jpg');

    background-size: cover;
    background-position: center;

    z-index: 0;
}

/* SUBTÍTULO */
.login-subtitle {
    font-family: 'Monteserrat', sans-serif;
    color: #8a8a8a;
    font-size: 15px;
    font-weight: 300;
    margin-bottom: 35px;
    line-height: 1.4;
    color: #c79f1c;
    font-weight: 500;
    text-align: center;
    margin-left: 70px;
}

/* INPUTS */
.input-group input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 18px;

    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: transparent;
    color: #fff;

    font-size: 14px;
    transition: all 0.25s ease;
}

.input-group input::placeholder {
    color: #666;
}

/* FOCO */
.input-group input:focus {
    outline: none;
    border: 1px solid #fecc25;
    box-shadow: 0 0 0 2px rgba(254, 204, 37, 0.15);
}

/* BOTÃO */

.btn-login {
    margin-top: 10px;
    padding: 14px;
    margin-left: 15px;

    border: none;
    border-radius: 8px;

    background: linear-gradient(90deg, #fecc25, #ffd84d);
    color: #1a1a1a;

    font-weight: 600;
    font-size: 15px;

    cursor: pointer;
    transition: all 0.25s ease;
}

/* HOVER */
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(254, 204, 37, 0.35);
}

/* RESPONSIVO */
@media (max-width: 900px) {

    .login-container::after {
        display: none;
    }

    .login-box {
        width: 100%;
        align-items: center;
        text-align: center;
        padding: 60px 30px;
    }
    
    .login-title,
    .login-subtitle,
    .input-group,
    .btn-login {
        max-width: 320px;
    }
}

.login-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.login-logo {
    width: 260px;
    margin-bottom: 40px;
    position: relative;
    top: 30px;
}

.recuperar-senha {
    width: 100%;
    max-width: 320px;
    margin-top: 12px;

    font-size: 13px;
    color: #666;
}

/* texto normal */
.recuperar-senha span {
    margin-right: 5px;
}

/* link */
.recuperar-senha a {
    color: #fecc25;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.recuperar-senha a:hover {
    text-decoration: underline;
}


/* CSS QUE ESTILIZA A RECUPERÇÃO DE SENHA DA TELA DE LOGIN */

.form-recuperar {
    display: none;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.btn-recuperar {
    margin-top: 8px;
    padding: 8px 12px;     /* diminui altura */
    font-size: 14px;       /* texto menor */
    width: auto;           /* não ocupar 100% */
    align-self: center;    /* centraliza */
}

/* animação suave */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-recuperar.ativo {
    display: block;
}

/* AO DIGITAR LOGIN OU SENHA ERRADO CSS */
.alerta {
    width: 100%;
    max-width: 320px;
    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;

    display: flex;
    align-items: center;
    gap: 10px;

    animation: fadeIn 0.3s ease;
}

/* ALERTA ERRO PREMIUM */
.alerta.erro {
    background: rgba(255, 77, 77, 0.08);
    border: 1px solid rgba(255, 77, 77, 0.25);
    color: #ff6b6b;
}