:root {
  --bright-blue: #4364F7;
  --bright-purple: #6B72FF;
  --bg-gradient: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 50%, #c2e9fb 100%);
  --glass-border: rgba(255, 255, 255, 0.4);
  --text-dark: #2d3748;
}

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-gradient);
  background-attachment: fixed;
  overflow-x: hidden;
  /* Diubah agar bisa scroll jika konten panjang */
  position: relative;
}

/* Dekorasi bentuk geometris di latar belakang */
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  z-index: 0;
}

.shape-1 {
  width: 111px;
  height: 111px;
  background: #ff9a9e;
  top: -50px;
  left: -50px;
  opacity: 0.6;
}

.shape-2 {
  width: 222px;
  height: 222px;
  background: #a18cd1;
  bottom: -100px;
  right: -100px;
  opacity: 0.5;
}

.shape-3 {
  width: 111px;
  height: 111px;
  background: #84fab0;
  bottom: 50px;
  left: 20%;
  opacity: 0.4;
}

/* Efek Glassmorphism pada Kartu Login */
.glass-card {
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 20px 15px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Logo Container */
.logo-container {
  width: 99px;
  height: 99px;
  margin: 0 auto 20px auto;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.logo-umh {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

h1.title-weapon {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 5px;
}

p.subtitle {
  text-align: center;
  color: #4a5568;
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Form Labels & Inputs */
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 4px;
  display: block;
}

.form-control-glass,
select.form-control-glass {
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  padding: 6px 9px;
  color: #2d3748;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-control-glass:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--bright-blue);
  box-shadow: 0 0 0 4px rgba(67, 100, 247, 0.15);
  outline: none;
}

.form-control-glass::placeholder {
  color: #718096;
}

/* Khusus Select arrow */
select.form-control-glass {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234364F7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 35px;
}

/* Input Group (untuk password dengan ikon mata) */
.input-group {
  display: flex;
  align-items: stretch;
}

.input-group .form-control-glass {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  flex: 1;
}

.input-group-text-glass {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: var(--bright-blue);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0 15px;
  display: flex;
  align-items: center;
}

.input-group-text-glass:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--bright-purple);
}

/* Styling Radio Button & Checkbox */
.form-check-glass {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 15px;
  color: #2d3748;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-check-glass input[type="radio"],
.form-check-glass input[type="checkbox"] {
  accent-color: var(--bright-blue);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Tombol Cerah */
.btn-bright {
  background: linear-gradient(90deg, var(--bright-blue) 0%, var(--bright-purple) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 8px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(67, 100, 247, 0.3);
  transition: all 0.3s ease;
  width: 100%;
  cursor: pointer;
}

.btn-bright:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 100, 247, 0.4);
  color: white;
}

.text-link {
  color: var(--bright-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.text-link:hover {
  color: var(--bright-purple);
  text-decoration: underline;
}

.alert-glass {
  background: rgba(255, 200, 200, 0.5);
  border: 1px solid rgba(255, 100, 100, 0.3);
  color: #721c24;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  text-align: center;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.d-flex {
  display: flex;
}

.justify-content-between {
  justify-content: space-between;
}

.align-items-center {
  align-items: center;
}

.d-grid {
  display: grid;
}

/* ============================================
   KATEGORI KOSAKATA (5 Icon)
   ============================================ */

/* Garis pembatas dengan teks di tengah */
.category-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 22px;
  font-size: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.category-divider::before,
.category-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Grid kartu kategori (otomatis menyesuaikan lebar layar) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  width: 100%;
}

/* Kartu kategori */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 10px 18px;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.35s ease, background 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease;
  /* animasi masuk bertahap */
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.category-card:nth-child(1) {
  animation-delay: 0.10s;
}

.category-card:nth-child(2) {
  animation-delay: 0.20s;
}

.category-card:nth-child(3) {
  animation-delay: 0.30s;
}

.category-card:nth-child(4) {
  animation-delay: 0.40s;
}

.category-card:nth-child(5) {
  animation-delay: 0.50s;
}

/* Lingkaran icon dengan gradien warna */
.category-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  font-size: 1.65rem;
  color: #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 22px -8px var(--c1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Nama kategori + garis aksen di bawahnya */
.category-name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
}

.category-name::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin: 7px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  transition: width 0.35s ease;
}

/* ===== Efek Hover ===== */
.category-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.5);
}

.category-card:hover .category-icon {
  transform: scale(1.15) rotate(-8deg);
  box-shadow: 0 14px 30px -6px var(--c1);
}

.category-card:hover .category-name::after {
  width: 55%;
}

/* Fokus keyboard (aksesibilitas) */
.category-card:focus-visible {
  outline: 2px solid var(--c2);
  outline-offset: 3px;
  border-radius: 20px;
}

/* Animasi */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}