* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0a0a;
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(212, 175, 55, 0.05) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(212, 175, 55, 0.05) 0%,
      transparent 50%
    );
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.login-container {
  background: rgba(15, 15, 15, 0.95);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  padding: 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

.logo-section {
  margin-bottom: 30px;
}

.logo-img {
  max-width: 160px;
  height: auto;
  margin-bottom: 10px;
}

.brand-subtitle {
  color: #d4af37;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
}

.form-container {
  background: rgba(20, 20, 20, 0.85);
  border-radius: 15px;
  padding: 25px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  color: #d4af37;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  color: #111;
  transition: all 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #d4af37;
  background: #fff;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.char-counter {
  display: block;
  color: #999;
  font-size: 12px;
  margin-top: 4px;
  text-align: right;
}

.char-counter.warning {
  color: #f4d03f;
  font-weight: 600;
}

.char-counter.danger {
  color: #ff6b6b;
  font-weight: 600;
}

.submit-btn {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #0a0a0a;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
}

.error-message {
  color: #8b2635;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   🎨 SweetAlert Custom Style
   ========================= */

/* Caja principal del popup */
.swal-popup-custom {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
  font-family: "Inter", sans-serif;
  background: rgba(15, 15, 15, 0.95) !important;
}

/* Título */
.swal-title-custom {
  font-size: 22px !important;
  font-weight: 700;
  color: #f4d03f !important;
  letter-spacing: -0.5px;
}

/* Botón confirmar */
.swal-confirm-custom {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%) !important;
  color: #0a0a0a !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: all 0.2s ease;
}
.swal-confirm-custom:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #ffd700 100%) !important;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.5);
}

/* Botón cancelar */
.swal-cancel-custom {
  background: rgba(30, 30, 30, 0.8) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  color: #d4af37 !important;
  border-radius: 10px !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease;
}
.swal-cancel-custom:hover {
  background: rgba(40, 40, 40, 0.9) !important;
  color: #f4d03f !important;
}
