/* ===============================
   LOGIN.CSS (DARK GLASS + NEON RING)
   - Match Register styling
   - Keep your Brand + role toggle HTML
================================ */

/* ===== Theme ===== */
:root {
  --bg-1: #050616;
  --bg-2: #0a0f2e;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, .78);

  --glass: rgba(255, 255, 255, .08);
  --glass-2: rgba(255, 255, 255, .06);
  --border: rgba(255, 255, 255, .14);

  --primary: #0b5cff;
  --primaryHover: #0a74ff;
  --primary-2: #00d2ff;

  --shadow: 0 25px 80px rgba(0, 0, 0, .55);
}

/* ===============================
   PAGE BACKGROUND + FOOTER BOTTOM
================================ */
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 18% 20%, rgba(0, 210, 255, .18), transparent 60%),
    radial-gradient(700px 380px at 82% 30%, rgba(11, 92, 255, .20), transparent 60%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
  min-height: 100vh;

  display: flex;
  flex-direction: column;
}

/* subtle grid overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(0, 210, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 210, 255, .08) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: .18;
}

/* Header/Footer (if any) */
.site-header {
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-footer {
  margin-top: auto;
  background: rgba(0, 0, 0, .28);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 14px 0;
  color: rgba(255, 255, 255, .82);
  text-align: center;
  font-size: 14px;
}

/* ===============================
   LAYOUT WRAP
================================ */

.container.mt-5.mb-5 {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 5px !important;
  padding-bottom: 60px !important;
}

.container.mt-5.mb-5 .row {
  width: 100%;
}

/* Bootstrap col used in your login (sometimes col-md-6 / col-md-8) */
.container.mt-5.mb-5 .col-md-6,
.container.mt-5.mb-5 .col-md-8 {
  max-width: 760px;
}

/* ===============================
   CARD (GLASS)
================================ */
.card.shadow {
  background: linear-gradient(180deg, var(--glass), var(--glass-2)) !important;
  border: 1px solid var(--border) !important;
  border-radius: 18px !important;
  box-shadow: var(--shadow) !important;
  backdrop-filter: blur(14px);
  overflow: visible !important;
  /* allow outer glow */
  position: relative;
  margin: 0 auto;
}

/* NEON ring glow outside */
.card.shadow::after {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 28px;
  pointer-events: none;
  z-index: -1;
  opacity: .65;
  filter: blur(14px);

  background: linear-gradient(90deg, var(--primary), var(--primary-2), var(--primary));

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;

  padding: 2px;
}

.card.shadow:hover::after {
  opacity: .9;
  inset: -14px;
  filter: blur(16px);
}


.card-body.p-4 {
  padding: 46px 64px 36px !important;
}


.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2px 0 18px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  font-size: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(11, 92, 255, .22);
  border: 1px solid rgba(255, 255, 255, .22);
}

.brand-name {
  font-size: 30px;
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: .02em;

  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(0, 210, 255, .18);
}

.brand-name::after {
  content: "ESPORTS LEARNING PLATFORM";
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .22em;
  color: rgba(255, 255, 255, .72);
  text-shadow: none;
  -webkit-text-fill-color: initial;
}


.text-center.mb-4 {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, .06);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  max-width: 420px;
  margin: 0 auto 22px !important;
}

.text-center.mb-4 .form-check-inline {
  margin: 0 !important;
}

.text-center.mb-4 .form-check {
  position: relative;
  margin: 0 !important;
}

.text-center.mb-4 .form-check-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.text-center.mb-4 .form-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 900;
  color: rgba(255, 255, 255, .78);
  cursor: pointer;
  user-select: none;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .12s ease;
}

/* Checked state */
#studentLogin:checked+.form-check-label,
#adminLogin:checked+.form-check-label {
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 12px 30px rgba(11, 92, 255, .25);
}

.text-center.mb-4 .form-check-label:active {
  transform: translateY(1px);
}


.form-label {
  display: block;
  font-weight: 800;
  color: rgba(255, 255, 255, .92);
  margin: 10px 0 8px;
}


.form-control {
  width: 100%;
  height: 50px;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, .14) !important;
  background: rgba(6, 10, 28, .60) !important;
  color: rgba(255, 255, 255, .95) !important;
  caret-color: #fff;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .05s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, .55) !important;
}

.form-control:focus {
  border-color: rgba(0, 210, 255, .55) !important;
  box-shadow: 0 0 0 4px rgba(0, 210, 255, .14) !important;
  background: rgba(6, 10, 28, .70) !important;
}

/* ===============================
   ALERT
================================ */
.alert.alert-danger {
  border-radius: 14px;
  border: 1px solid rgba(217, 48, 37, .25) !important;
  background: rgba(217, 48, 37, .12) !important;
  color: rgba(255, 220, 220, .95) !important;
  font-weight: 800;
}


.d-grid {
  margin-top: 18px;
}

.btn.btn-primary,
.btn.btn-danger {
  width: 100%;
  height: 56px;
  border: none !important;
  border-radius: 14px !important;
  font-weight: 900;
  font-size: 18px;
  letter-spacing: .2px;
  cursor: pointer;

  background: linear-gradient(90deg, var(--primary), var(--primary-2)) !important;
  color: #fff !important;
  box-shadow: 0 16px 40px rgba(11, 92, 255, .25);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.btn.btn-primary:hover,
.btn.btn-danger:hover {
  filter: brightness(1.05);
  box-shadow: 0 18px 55px rgba(11, 92, 255, .30);
}

.btn.btn-primary:active,
.btn.btn-danger:active {
  transform: translateY(1px);
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
  .card-body.p-4 {
    padding: 36px 22px 28px !important;
  }

  .text-center.mb-4 {
    max-width: 100%;
  }

  .text-center.mb-4 .form-check-label {
    min-width: 140px;
  }
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  font-weight: 700;
}

.auth-footer span {
  color: rgba(255, 255, 255, .65);
}

.auth-footer .auth-link {
  display: inline-block;
  margin-left: 8px;
  font-weight: 900;
  letter-spacing: .2px;
  text-decoration: none;

  /* neon text */
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  /* subtle glow */
  text-shadow: 0 0 16px rgba(0, 210, 255, .18);
}

.auth-footer .auth-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}