/* ===== Página ===== */
.login-page {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
    background: #f2f2f2;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ===== Lado da imagem ===== */
.login-image {
    width: 100%;
    position: relative;
    background:
        url("/static/images/login_img.png") center center no-repeat,
        linear-gradient(to right, #003366, #0055aa);
    background-size: 50% auto, cover;     /* imagem menor */
    background-repeat: no-repeat;
    background-position: center right;
    color: white;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 4rem 2rem 4rem 5rem;
}

.login-overlay-text { max-width: 480px; }
.login-overlay-text h2 {
    font-weight: 800;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
}
.login-overlay-text p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #ffffffcc;
}

/* ===== Lado do formulário ===== */
.login-form-wrapper {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: linear-gradient(to right, #f2f2f2, #e6f2ff);
}

/* cartão e campos (usa seu HTML atual) */
.login-form-wrapper .card { width: 100%; max-width: 420px; }
.form-control { min-height: 44px; font-size: 16px; }
.input-group-text { min-width: 44px; }

/* Botão sempre horizontal */
/* Botão de login — visual consistente e centrado */
#loginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  border: 0;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;              /* evita “esticamento” vertical do texto */
  letter-spacing: .2px;
  white-space: nowrap;         /* não quebra linhas */
  writing-mode: horizontal-tb; /* garante horizontal */
  text-orientation: mixed;
  box-shadow: 0 6px 18px rgba(13, 110, 253, .25);
  transition: transform .06s ease, box-shadow .2s ease, filter .15s ease;
}

/* Harmoniza com Bootstrap sem perder a cor primária */
#loginBtn.btn-primary {
  background: #0d6efd;
}

#loginBtn:hover {
  filter: brightness(1.03);
  box-shadow: 0 8px 22px rgba(13, 110, 253, .30);
}

#loginBtn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 12px rgba(13, 110, 253, .25);
}

#loginBtn:disabled {
  opacity: .85;
  cursor: not-allowed;
  box-shadow: none;
}

/* Em telas muito pequenas, mantenha proporção agradável */
@media (max-width: 480px) {
  #loginBtn { height: 46px; border-radius: 12px; }
}


/* ===== Responsivo ===== */

/* Tablets e telas médias: dá mais espaço ao formulário */
@media (max-width: 991px) {
    .login-image { background-size: 40% auto, cover; padding: 3rem 2rem; }
    .login-form-wrapper { width: 60%; padding: 2rem; }
}

/* Mobile: empilha, esconde a imagem e centraliza o formulário */
@media (max-width: 768px) {
    .login-page { flex-direction: column; }

    .login-image { display: none; }

    .login-form-wrapper {
        width: 100%;
        padding: 2rem 1rem;
        background: #f2f2f2;     /* remove gradiente forte no mobile */
    }

    .login-form-wrapper .card { max-width: 460px; }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .login-form-wrapper { padding: 1.25rem 0.75rem; }
    .login-form-wrapper .card { border-radius: 16px; }
    #loginBtn { height: 46px; border-radius: 12px; }
}
