/* =========================
   MBG366 AUTH CARD DESIGN
   Theme: Blue + Violet
   Blue Lightning + Violet Neon
========================= */

.mbg-auth-card,
.mbg-auth-card form {
  position: relative;
}

.mbg-auth-card {
  max-width: 430px;
  margin: 18px auto;
  padding: 22px 18px 26px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 123, 255, 0.28), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(177, 76, 255, 0.22), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(0, 191, 255, 0.16), transparent 42%),
    linear-gradient(180deg, #101827 0%, #07101d 48%, #030812 100%) !important;
  border: 1px solid rgba(177, 76, 255, 0.82);
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.35),
    0 0 14px rgba(177, 76, 255, 0.75),
    0 0 26px rgba(0, 123, 255, 0.55),
    0 0 38px rgba(0, 191, 255, 0.35),
    0 14px 34px rgba(0, 0, 0, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mbg-auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.14) 18%, transparent 34%),
    linear-gradient(90deg, rgba(0,123,255,0.14), transparent 42%, rgba(177,76,255,0.18));
  pointer-events: none;
  z-index: 0;
}

.mbg-auth-card::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 14px;
  border: 1px solid rgba(0, 191, 255, 0.55);
  box-shadow:
    inset 0 0 10px rgba(177, 76, 255, 0.22),
    inset 0 0 18px rgba(0, 123, 255, 0.26);
  pointer-events: none;
  z-index: 0;
}

.mbg-auth-card > *,
.mbg-auth-card form {
  position: relative;
  z-index: 1;
}

.mbg-auth-card label,
.mbg-auth-card .mbg-auth-label {
  display: block;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.2px;
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.90),
    0 0 10px rgba(0, 191, 255, 0.85),
    0 0 18px rgba(177, 76, 255, 0.78);
}

.mbg-auth-card input[type="text"],
.mbg-auth-card input[type="password"],
.mbg-auth-card input[type="email"],
.mbg-auth-card input[type="tel"],
.mbg-auth-card input[type="number"],
.mbg-auth-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]) {
  width: 100% !important;
  height: 44px;
  border-radius: 9px;
  border: 1px solid rgba(177, 76, 255, 0.90);
  background:
    linear-gradient(180deg, #ffffff 0%, #eaf4ff 48%, #d4e5f8 100%) !important;
  color: #050812 !important;
  font-size: 16px;
  font-weight: 700;
  padding: 0 14px;
  outline: none;
  box-sizing: border-box;
  margin-bottom: 16px;
  box-shadow:
    0 0 8px rgba(177, 76, 255, 0.46),
    0 0 16px rgba(0, 123, 255, 0.28),
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.16);
}

.mbg-auth-card input::placeholder {
  color: #4f5f70;
}

.mbg-auth-card input:focus {
  border-color: #00bfff;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2f8ff 48%, #dcecff 100%) !important;
  box-shadow:
    0 0 0 2px rgba(177, 76, 255, 0.20),
    0 0 12px rgba(177, 76, 255, 0.80),
    0 0 22px rgba(0, 123, 255, 0.70),
    0 0 30px rgba(0, 191, 255, 0.45),
    inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

.mbg-auth-card .mbg-auth-btn,
.mbg-auth-card button,
.mbg-auth-card input[type="submit"],
.mbg-auth-card input[type="button"],
.mbg-auth-card .btn,
.mbg-auth-card a.button {
  min-width: 140px;
  height: 39px;
  padding: 0 18px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  background:
    linear-gradient(180deg, #ffffff 0%, #efe2ff 18%, #d7a8ff 36%, #b14cff 58%, #8a2be2 78%, #007bff 100%) !important;
  color: #07101d !important;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 5px 0 #050910,
    0 0 8px rgba(255, 255, 255, 0.42),
    0 0 13px rgba(177, 76, 255, 0.88),
    0 0 22px rgba(0, 123, 255, 0.65),
    0 0 30px rgba(0, 191, 255, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -2px 4px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  margin-top: 4px;
  margin-right: 10px;
  transition: all 0.18s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.55);
}

.mbg-auth-card .mbg-auth-btn:hover,
.mbg-auth-card button:hover,
.mbg-auth-card input[type="submit"]:hover,
.mbg-auth-card input[type="button"]:hover,
.mbg-auth-card .btn:hover,
.mbg-auth-card a.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.13);
  box-shadow:
    0 6px 0 #050910,
    0 0 12px rgba(255, 255, 255, 0.55),
    0 0 18px rgba(177, 76, 255, 1),
    0 0 30px rgba(0, 123, 255, 0.84),
    0 0 42px rgba(0, 191, 255, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.mbg-auth-card .mbg-auth-btn:active,
.mbg-auth-card button:active,
.mbg-auth-card input[type="submit"]:active,
.mbg-auth-card input[type="button"]:active,
.mbg-auth-card .btn:active,
.mbg-auth-card a.button:active {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 #050910,
    0 0 8px rgba(177, 76, 255, 0.85),
    0 0 16px rgba(0, 123, 255, 0.65);
}

.mbg-auth-card form {
  text-align: left;
}

.mbg-auth-card .mbg-auth-btn + .mbg-auth-btn,
.mbg-auth-card button + button,
.mbg-auth-card .btn + .btn {
  margin-left: 0;
}

/* Mobile */
@media (max-width: 480px) {
  .mbg-auth-card {
    max-width: calc(100% - 24px);
    padding: 18px 14px 22px;
    border-radius: 15px;
  }

  .mbg-auth-card input[type="text"],
  .mbg-auth-card input[type="password"],
  .mbg-auth-card input[type="email"],
  .mbg-auth-card input[type="tel"],
  .mbg-auth-card input[type="number"],
  .mbg-auth-card input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]) {
    height: 41px;
    font-size: 15px;
  }

  .mbg-auth-card .mbg-auth-btn,
  .mbg-auth-card button,
  .mbg-auth-card input[type="submit"],
  .mbg-auth-card input[type="button"],
  .mbg-auth-card .btn,
  .mbg-auth-card a.button {
    min-width: 120px;
    height: 37px;
    font-size: 13px;
    margin-right: 6px;
  }
}