:root {
  --navy-deep: #0f172a;
  --navy-soft: #1e293b;
  --royal: #2563eb;
  --emerald: #10b981;
  --primary-glow: #3b82f6;
  --glass-bg: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-hover: 0 20px 40px -15px rgba(15, 23, 42, 0.25);
}

html, body {
  width: 100%; max-width: 100%; overflow-x: hidden;
  margin: 0; padding: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: radial-gradient(circle at top left, #1e1b4b, #0f172a 60%, #020617);
  min-height: 100vh; min-height: 100dvh;
  color: #fff; display: flex; flex-direction: column; position: relative;
}

body::before {
  content: ""; position: absolute; top: -100px; left: -100px;
  width: 350px; height: 350px; border-radius: 50%;
  background: rgba(59, 130, 246, 0.35); filter: blur(90px); z-index: 0;
}
body::after {
  content: ""; position: absolute; bottom: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(139, 92, 246, 0.3); filter: blur(100px); z-index: 0;
}

a { text-decoration: none; }

.navbar-glass {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); z-index: 1030;
}
.navbar-brand-custom { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: #fff !important; }
.navbar-brand-custom .brand-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--royal), var(--emerald));
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: #fff;
}
.navbar-nav .nav-link { color: rgba(255, 255, 255, 0.85) !important; font-weight: 500; font-size: 0.92rem; padding: 8px 16px !important; border-radius: 8px; }
.navbar-nav .nav-link:hover { color: #fff !important; background: rgba(255, 255, 255, 0.1); }

.auth-container { flex: 1; display: flex; align-items: center; justify-content: center; width: 100%; padding: 100px 16px 40px; z-index: 10; box-sizing: border-box; }
.auth-card {
  background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border); border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4); width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 22px; box-sizing: border-box;
}

.auth-title { font-size: 1.65rem; font-weight: 800; text-align: center; margin-bottom: 20px; background: linear-gradient(135deg, #ffffff, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.form-group-custom { margin-bottom: 16px; }
.form-label-custom { font-size: 0.82rem; font-weight: 600; color: rgba(255, 255, 255, 0.88); margin-bottom: 6px; display: block; }
.form-control-glass { background: rgba(255, 255, 255, 0.07) !important; border: 1px solid rgba(255, 255, 255, 0.18) !important; border-radius: 12px !important; padding: 11px 14px !important; color: #fff !important; font-size: 0.9rem !important; }
.form-control-glass::placeholder { color: rgba(255, 255, 255, 0.4) !important; }

.mapel-chips-container { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-checkbox input[type="checkbox"] { display: none; }
.chip-checkbox label { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); padding: 7px 12px; border-radius: 10px; font-size: 0.78rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); cursor: pointer; }
.chip-checkbox input[type="checkbox"]:checked + label { background: rgba(59, 130, 246, 0.28); border-color: var(--primary-glow); color: #fff; }

.btn-glass { background: linear-gradient(135deg, #ffffff, #e2e8f0); color: #0f172a; font-weight: 800; padding: 12px; border-radius: 12px; border: none; width: 100%; margin-top: 10px; font-size: 0.92rem; }
.btn-glass:hover { background: #ffffff; transform: translateY(-2px); }

.auth-links { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; margin-top: 12px; }
.auth-links a { color: rgba(255, 255, 255, 0.7); }
.toggle-text { text-align: center; margin-top: 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.75); }
.toggle-text a { color: #60a5fa; font-weight: 700; margin-left: 5px; }

@media (max-width: 576px) { .auth-card { padding: 22px 16px; border-radius: 16px; } .auth-title { font-size: 1.4rem; } }
