* {
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

body {
  margin: 0;
}

/* ===============================
   LAYOUT LOGIN
================================ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../img/bg-login.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* remove cursor de texto fora dos inputs */
  caret-color: transparent;
}

.login-wrapper input,
.login-wrapper textarea {
  caret-color: auto;
}

.login-box-custom {
  background: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 45px 35px;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(0,0,0,.15);
  text-align: center;
}

.login-logo {
  width: 120px;
  margin-bottom: 20px;
}

.login-box-custom h1 {
  font-size: 26px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 6px;
}

.login-box-custom p {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 28px;
}

/* ===============================
   INPUTS
================================ */
.login-group {
  position: relative;
  margin-bottom: 18px;
}

.login-group i {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #6c757d;
}

.login-group input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border-radius: 10px;
  border: 1px solid #d0d7de;
  font-size: 14px;
  background: #f8fafc;
}

.login-group input:focus {
  outline: none;
  border-color: #1e88e5;
  box-shadow: 0 0 0 3px rgba(30,136,229,.15);
}

/* ===============================
   BOTÃO
================================ */
.btn-login {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, #1e88e5, #26c6da);
  cursor: pointer;
  transition: all .3s;
}

.btn-login:hover {
  filter: brightness(1.1);
}

.login-footer {
  display: block;
  margin-top: 25px;
  font-size: 12px;
  color: #adb5bd;
}

/* ===============================
   ERRO LOGIN
================================ */
.login-group.has-error input {
  border: 1.5px solid #dc3545 !important;
  background-color: #fff5f5 !important;
  color: #dc3545;
}

.login-group.has-error i {
  color: #dc3545 !important;
}

.login-group.has-error input::placeholder {
  color: #dc3545;
}

.login-group.has-error input:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.15rem rgba(220,53,69,.25) !important;
}

/* ===============================
   BOX DE ERRO – COMPACTA
================================ */
.login-error-box {
    background: #fff5f5;
    border: 1px solid #f1b0b7;
    border-radius: 6px;

    padding: 8px 12px;        /* ⬅️ MENOR */
    margin-bottom: 14px;     /* ⬅️ MENOR */

    display: flex;
    align-items: center;
    gap: 6px;

    color: #dc3545;
    font-size: 13px;         /* ⬅️ MENOR */
    font-weight: 500;
    line-height: 1.3;        /* ⬅️ MAIS COMPACTO */
}
.login-error-box {
    animation: shake 0.25s ease-in-out;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    50% { transform: translateX(3px); }
    75% { transform: translateX(-2px); }
    100% { transform: translateX(0); }
}



/* Mantém digitação funcionando normalmente */
.login-group input::selection {
    background: rgba(30, 136, 229, 0.25);
}
.btn-biometria {
    margin-top: 10px;
    background: linear-gradient(90deg, #4caf50, #2e7d32);
}

.btn-biometria:hover {
    filter: brightness(1.1);
}