/* ==================================================
                 PÁGINA DE LOGIN
================================================== */

.login-section {
  min-height: calc(100vh - 120px);
  position: relative;
  overflow: hidden;
  background-image: url('/imgs/hero_bar.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Overlay escuro sobre a imagem de fundo */
.login-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 0;
}

/* Card principal com borda dupla e glassmorphism */
.login-card {
  position: relative;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  padding: 1px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(215, 154, 61, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: fadeInUp 500ms var(--ease-out-strong, cubic-bezier(0.16, 1, 0.3, 1)) both;
  z-index: 1;
}

.login-card-inner {
  background: rgba(14, 16, 20, 0.65);
  border-radius: 23px;
  padding: clamp(28px, 4vw, 40px) clamp(20px, 3.5vw, 36px);
  border: 1px solid rgba(215, 154, 61, 0.15);
}

/* Badge de "Acesso Restrito" */
.login-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(215, 154, 61, 0.10);
  border: 1px solid rgba(215, 154, 61, 0.28);
  color: var(--gold-accent, #d79a3d);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Logo com moldura sutil */
.login-logo-wrap {
  display: inline-block;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
}

.login-logo {
  max-width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(215, 154, 61, 0.18));
}

/* Título e Subtítulo */
.login-title {
  color: var(--text-main, #fcfcfc);
  font-size: clamp(1.4rem, 2vw + 0.5rem, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.login-subtitle {
  color: var(--text-muted, #9499a0);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Alerta de erro customizado */
.alert-custom-danger {
  background-color: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.35);
  color: #ff8b80;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
}

.alert-custom-danger i {
  color: #ff5252;
  font-size: 1.1rem;
}

/* Labels do formulário */
.login-form .form-label {
  color: var(--text-main, #fcfcfc);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Input group customizado com ícones integrados */
.input-group-custom {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--gold-accent, #d79a3d);
  font-size: 1.15rem;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 2;
  transition: color 0.2s ease;
}

.form-control-custom {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 48px;
  background-color: rgba(8, 9, 12, 0.85);
  border: 1px solid rgba(215, 154, 61, 0.20);
  border-radius: 14px;
  color: var(--text-main, #fcfcfc);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.25s var(--ease-out-strong, cubic-bezier(0.16, 1, 0.3, 1));
}

.form-control-custom::placeholder {
  color: rgba(148, 153, 160, 0.45);
}

.form-control-custom:focus {
  background-color: rgba(12, 14, 18, 0.98);
  border-color: var(--gold-accent, #d79a3d);
  box-shadow: 0 0 0 3px rgba(215, 154, 61, 0.16), 0 0 20px rgba(215, 154, 61, 0.12);
}

/* Botão de ver senha */
.btn-toggle-password {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted, #9499a0);
  padding: 6px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, transform 0.15s ease;
  z-index: 2;
}

.btn-toggle-password:hover {
  color: var(--gold-accent, #d79a3d);
}

/* Botão principal de login com brilho dourado */
.login-button {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #e8b35a 0%, #d79a3d 50%, #b87b22 100%);
  border: none;
  border-radius: 14px;
  color: #050505;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(215, 154, 61, 0.28);
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.25s var(--ease-out-strong, cubic-bezier(0.16, 1, 0.3, 1));
}

.login-button:hover {
  background: linear-gradient(135deg, #f0c374 0%, #e0a549 50%, #c4882d 100%);
  box-shadow: 0 10px 30px rgba(215, 154, 61, 0.42);
  transform: translateY(-2px);
}

.login-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 14px rgba(215, 154, 61, 0.25);
}

/* Link para voltar */
.login-back-link {
  color: var(--text-muted, #9499a0);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.login-back-link:hover {
  color: var(--gold-accent, #d79a3d);
}

@media (max-width: 576px) {
  .login-card-inner {
    padding: 26px 18px;
  }
}
