/* ===========================
   LOGIN PAGE - ESTILOS
   =========================== */

/* Background wallpaper para página de login */
body {
  background: 
    linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.3) 100%),
    url('../wallpaper.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
}

.login-card-drop {
  transform-origin: center top;
  animation: loginCardDrop 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

@keyframes loginCardDrop {
  0% {
    opacity: 0;
    transform: translateY(-44px) scale(0.96);
    filter: blur(1px);
  }

  60% {
    opacity: 1;
    transform: translateY(10px) scale(1.01);
    filter: blur(0);
  }

  82% {
    transform: translateY(-4px) scale(0.995);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Links de ação (Esqueceu a senha? / Criar agora / Já tenho conta) */
.card-body a[href$="forgot-password.php"],
.card-body a[href$="create-account.php"],
.card-body a[href$="login.php"] {
  color: var(--color-primary, #ff460a) !important;
  text-decoration: none;
}
.card-body a[href$="forgot-password.php"]:hover,
.card-body a[href$="create-account.php"]:hover,
.card-body a[href$="login.php"]:hover {
  color: #e03f08 !important;
  text-decoration: underline;
}

/* Fallback local: garantir laranja #ff460a no botão Entrar mesmo se CSS externo não carregar/for sobrescrito */
.btn.btn-login {
  background: #ff460a !important;
  border-color: #ff460a !important;
  color: #fff !important;
}

.btn.btn-login:hover {
  filter: brightness(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .login-card-drop {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Fallback essencial quando Bootstrap não carrega: utilitário .d-none */
.d-none {
  display: none !important;
}

/* Inline fallback mínimo para quando Bootstrap CDN não carrega */
.card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.5rem;
}

.card-body {
  padding: 1rem;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

.input-group {
  display: flex;
  width: 100%;
}

.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control {
  border-left: 0;
  border-radius: 0 0.375rem 0.375rem 0;
  flex: 1 1 auto;
}

/* Evitar dupla borda quando houver botão à direita (campo de senha) */
.input-group .form-control:not(:last-child) {
  border-right: 0;
  border-radius: 0;
}

/* Garantir MESMA ALTURA entre e-mail e senha, inclusive botão de mostrar senha */
.input-group-text,
.input-group .form-control,
.input-group .btn {
  height: 42px;
}

.input-group .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0.375rem 0.375rem 0;
  border-left: 0;
}

.btn {
  display: inline-block;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.375rem;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-outline-secondary {
  color: #0d6efd;
  background-color: transparent;
  border-color: #0d6efd;
}

.btn-outline-secondary:hover {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.alert {
  position: relative;
  padding: 0.5rem 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.alert-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

/* Classes utilitárias adicionais */
.min-vh-100 {
  min-height: 100vh;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mt-3 {
  margin-top: 1rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #6c757d;
}

.small {
  font-size: 0.875rem;
}

.w-100 {
  width: 100%;
}

.form-check {
  display: block;
  padding-left: 1.5rem;
}

.form-check-input {
  float: left;
  margin-left: -1.5rem;
  margin-top: 0.3em;
}

.form-check-label {
  display: inline-block;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}
