/* ========================================================
   SIPM - PORTAL SISWA, WALI MURID & WALI KELAS
   SMK MA'ARIF KOTA MUNGKID
   ======================================================== */

.portal-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: 
    radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(5, 150, 105, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f0fdf4 100%);
  position: relative;
  overflow-x: hidden;
  color: var(--slate-800);
}

/* Background animated decorative spheres */
.portal-wrapper::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

.portal-wrapper::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -120px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}

/* Top Navbar of the Portal */
.portal-topbar {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.03);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.portal-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

.portal-brand-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.portal-brand-text span {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  display: block;
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portal-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.portal-active-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

/* Main Content Area */
.portal-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3.5rem;
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* Hero Title Section */
.portal-hero {
  text-align: center;
  max-width: 720px;
  margin-bottom: 2rem;
}

.portal-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e6fcf5 0%, #ecfdf5 100%);
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.portal-hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}

.portal-hero-title .highlight {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-hero-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0 auto 1.25rem;
}

/* Feature pills preview */
.portal-feature-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.portal-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Modern Dual-Column Grid for Public Portal */
.portal-layout-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 1rem auto 2.5rem;
}

@media (max-width: 960px) {
  .portal-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.portal-left-showcase {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.portal-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #a7f3d0;
  color: #065f46;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.08);
}

.portal-showcase-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

.portal-showcase-title .highlight {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portal-showcase-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.portal-showcase-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.portal-showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.portal-showcase-feature-item:hover {
  background: #ffffff;
  border-color: #a7f3d0;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.08);
}

.portal-feature-circle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.portal-feature-circle-icon.emerald {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.portal-feature-circle-icon.blue {
  background: #f0f9ff;
  color: #0284c7;
  border: 1px solid #bae6fd;
}

.portal-feature-circle-icon.amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.portal-feature-circle-icon.indigo {
  background: #eef2ff;
  color: #4f46e5;
  border: 1px solid #c7d2fe;
}

.portal-feature-item-text h4 {
  font-size: 0.875rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.portal-feature-item-text p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Quick Access Chips */
.portal-quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.portal-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.portal-chip-btn:hover {
  background: #ecfdf5;
  border-color: #059669;
  color: #047857;
  transform: translateY(-1px);
}

/* The Main Interactive Dual-Card */
.portal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 28px;
  box-shadow: 
    0 25px 50px -12px rgba(5, 150, 105, 0.18),
    0 0 0 1px rgba(16, 185, 129, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 20;
  transition: all 0.3s ease;
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0 auto;
}

/* Segmented Tab Switcher (2 Tab Publik: Siswa & Wali, Wali Kelas) */
.portal-tabs-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 0.5rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.35rem;
  position: relative;
  z-index: 22;
}

.portal-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.65rem;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative;
  z-index: 25;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  white-space: nowrap;
  user-select: none;
}

.portal-tab-btn:hover {
  color: #065f46;
  background: rgba(255, 255, 255, 0.6);
}

.portal-tab-btn.active {
  background: #ffffff;
  color: #047857;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.portal-tab-btn .tab-icon {
  font-size: 1.15rem;
}

/* Tab Content Box */
.portal-tab-pane {
  padding: 2rem 2.25rem 2.25rem;
}

.portal-pane-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.portal-pane-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin: 0 auto 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.2);
}

.portal-pane-icon.student-theme {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
}

.portal-pane-icon.walikelas-theme {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
}

.portal-pane-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.3rem;
}

.portal-pane-subtitle {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

/* Custom Select styling for classes */
.portal-select {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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 1rem center;
  background-size: 16px;
}

.portal-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

.portal-select optgroup {
  font-weight: 800;
  color: #047857;
  background: #f0fdf4;
  padding: 4px;
}

.portal-select option {
  font-weight: 500;
  color: #1e293b;
  background: #ffffff;
  padding: 6px;
}

/* Official Bank Section below Card */
.portal-bank-section {
  width: 100%;
  max-width: 720px;
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.portal-bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portal-bank-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.portal-bank-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.portal-bank-card:hover {
  border-color: #a7f3d0;
  background: #f0fdf4;
  transform: translateY(-2px);
}

.portal-bank-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 4px;
}

.portal-bank-num-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.portal-bank-number {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
  font-family: monospace;
}

.portal-bank-holder {
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 4px;
}

.btn-copy-account {
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  color: #047857;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-account:hover {
  background: #ecfdf5;
  border-color: #059669;
}

/* Footer Copyright */
.portal-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ========================================================
   PREMIUM ADMIN & BACK-OFFICE DEDICATED LOGIN (URL: /admin)
   ======================================================== */
.admin-login-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  background: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(4, 120, 87, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(6, 78, 59, 0.45) 0%, transparent 70%),
    linear-gradient(135deg, #022c22 0%, #064e3b 50%, #042f2e 100%);
  position: relative;
  overflow: hidden;
}

.admin-login-wrapper::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, rgba(16, 185, 129, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.admin-login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.3) 0%, rgba(6, 78, 59, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: floatOrb 14s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 30px) scale(1.08); }
}

.admin-auth-container {
  width: 100%;
  max-width: 1020px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.25);
  overflow: hidden;
  position: relative;
  z-index: 10;
  animation: modalEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Left Brand Showcase Panel */
.admin-showcase-panel {
  background: linear-gradient(145deg, #064e3b 0%, #065f46 45%, #047857 100%);
  padding: 3.5rem 3rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.admin-showcase-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
}

.admin-showcase-content {
  position: relative;
  z-index: 2;
}

.admin-showcase-logo-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-showcase-emblem {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  flex-shrink: 0;
}

.admin-showcase-school-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  line-height: 1.25;
}

.admin-showcase-institution {
  font-size: 0.72rem;
  color: #a7f3d0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #d1fae5;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.admin-showcase-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.admin-showcase-desc {
  font-size: 0.875rem;
  color: #d1fae5;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.admin-features-list {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-bottom: 2rem;
}

.admin-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.admin-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #6ee7b7;
}

.admin-feature-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.admin-feature-text p {
  font-size: 0.78rem;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.4;
}

.admin-showcase-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  color: #a7f3d0;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Right Login Form Panel */
.admin-form-panel {
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ffffff;
}

.admin-form-header {
  margin-bottom: 1.75rem;
}

.admin-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.admin-form-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.admin-form-subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-input-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.admin-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-icon {
  position: absolute;
  left: 1rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.2s ease;
}

.admin-input-control {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 2.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.admin-input-control:focus {
  background: #ffffff;
  border-color: #059669;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.admin-input-wrapper:focus-within .admin-input-icon {
  color: #059669;
}

.admin-password-toggle {
  position: absolute;
  right: 0.85rem;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: color 0.15s ease;
}

.admin-password-toggle:hover {
  color: #0f172a;
}

.btn-admin-submit {
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #064e3b 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px rgba(4, 120, 87, 0.35);
  transition: all 0.25s ease;
}

.btn-admin-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -4px rgba(4, 120, 87, 0.45);
  background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
}

.btn-admin-submit:active {
  transform: translateY(0);
}

.btn-admin-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Quick Demo Role Cards */
.admin-quick-roles {
  margin-top: 1.5rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.admin-quick-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #047857;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.admin-quick-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.admin-quick-btn:hover {
  background: #ecfdf5;
  border-color: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.12);
}

.admin-quick-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.admin-quick-btn.role-admin .admin-quick-icon {
  background: #ecfdf5;
  color: #047857;
}

.admin-quick-btn.role-bendahara .admin-quick-icon {
  background: #f0f9ff;
  color: #0284c7;
}

.admin-quick-info strong {
  display: block;
  font-size: 0.8125rem;
  color: #0f172a;
  line-height: 1.2;
}

.admin-quick-info span {
  display: block;
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 2px;
}

.admin-return-link {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.admin-return-link a {
  color: #047857;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.admin-return-link a:hover {
  color: #064e3b;
  text-decoration: underline;
}

@media (max-width: 900px) {
  .admin-auth-container {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .admin-showcase-panel {
    padding: 2.25rem 2rem;
  }
  .admin-form-panel {
    padding: 2.25rem 2rem;
  }
}

/* ========================================================
   WALI KELAS PORTAL VIEW STYLES
   ======================================================== */
.walikelas-container {
  padding: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.walikelas-hero-card {
  background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #059669 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 1.75rem 2rem;
  box-shadow: 0 10px 25px -5px rgba(6, 78, 59, 0.3);
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
}

.walikelas-hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.walikelas-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.walikelas-teacher-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.walikelas-avatar {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.walikelas-title-group h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.walikelas-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.walikelas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.walikelas-actions-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Stat Cards for Wali Kelas */
.walikelas-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.walikelas-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.walikelas-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.walikelas-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.walikelas-stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
}

.walikelas-stat-sub {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 6px;
  font-weight: 600;
}

/* Progress bar inside stat */
.walikelas-progress-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  margin-top: 8px;
  overflow: hidden;
}

.walikelas-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* Student Table Controls */
.walikelas-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.walikelas-search-input {
  flex: 1;
  min-width: 250px;
  position: relative;
}

.walikelas-search-input input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
}

.walikelas-search-input .icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

/* Quick Action WhatsApp button */
.btn-wa-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #25d366;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-wa-action:hover {
  background: #128c7e;
  color: #ffffff;
  transform: translateY(-1px);
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .portal-topbar {
    padding: 0.75rem 1rem;
  }
  .portal-hero-title {
    font-size: 1.65rem;
  }
  .portal-tab-pane {
    padding: 1.5rem 1.25rem;
  }
  .portal-tabs-nav {
    grid-template-columns: 1fr;
  }
  .walikelas-hero-card {
    padding: 1.25rem;
  }
  .walikelas-teacher-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ========================================================
   STUDENT PORTAL ENHANCED STYLES (PANEL SISWA)
   ======================================================== */
.student-portal-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0.25rem 0 3rem;
  animation: modalEnter 0.35s ease-out;
}

/* Student Top Navigation */
.student-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  flex-wrap: wrap;
  gap: 1rem;
}

.student-navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.student-navbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #059669 0%, #064e3b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
  flex-shrink: 0;
}

.student-navbar-text h2 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #064e3b;
  margin: 0;
  line-height: 1.2;
}

.student-navbar-text span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 600;
}

.student-navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Student Hero Banner */
.student-hero-banner {
  background: linear-gradient(135deg, #064e3b 0%, #065f46 45%, #047857 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 2.25rem 2.25rem;
  margin-bottom: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 36px -10px rgba(6, 78, 59, 0.35);
}

.student-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.5;
  pointer-events: none;
}

.student-hero-banner::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.student-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.student-hero-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.student-hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 3px solid rgba(255, 255, 255, 0.4);
  position: relative;
  flex-shrink: 0;
}

.student-hero-avatar::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #ffffff;
}

.student-hero-title-group h1 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

.student-pills-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.student-badge-pill {
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.student-badge-pill.status-active {
  background: #ecfdf5;
  color: #047857;
}

.student-badge-pill.gender-male {
  background: #e0f2fe;
  color: #0369a1;
}

.student-badge-pill.gender-female {
  background: #fdf2f8;
  color: #be185d;
}

.student-badge-pill.major-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.student-meta-list {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: #d1fae5;
  flex-wrap: wrap;
}

.student-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.student-meta-item strong {
  color: #ffffff;
}

.student-hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.student-action-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  padding: 0.65rem 1.15rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8125rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
  text-decoration: none;
}

.student-action-btn:hover {
  background: #ffffff;
  color: #064e3b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Stat Cards in Student Portal */
.student-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.student-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.student-metric-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.student-metric-card.hero-kewajiban {
  border-top: 4px solid #be123c;
  background: linear-gradient(180deg, #ffffff 0%, #fffbfc 100%);
}

.student-metric-card.hero-kewajiban.is-paid {
  border-top: 4px solid #059669;
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.student-metric-card.card-arrears {
  border-top: 4px solid var(--arrear-color);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f6 100%);
}

.student-metric-card.card-current {
  border-top: 4px solid #d97706;
}

.student-metric-card.card-paid {
  border-top: 4px solid #059669;
}

.student-metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.student-metric-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.student-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.student-metric-value {
  font-size: 1.75rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.student-metric-footer {
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 12-Bulan SPP Visual Grid Tracker */
.student-spp-matrix-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.student-spp-matrix-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.student-spp-matrix-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
}

.student-spp-months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}

.student-spp-month-cell {
  border-radius: 14px;
  padding: 0.85rem 0.75rem;
  text-align: center;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 90px;
}

.student-spp-month-cell:hover {
  transform: translateY(-2px);
}

.student-spp-month-cell.status-paid {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
}

.student-spp-month-cell.status-unpaid {
  background: #fffbeb;
  border: 1.5px solid #fde68a;
  color: #92400e;
}

.student-spp-month-cell.status-empty {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #94a3b8;
}

.student-spp-month-name {
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.student-spp-month-amount {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.student-spp-month-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 800;
}

.student-spp-month-cell.status-paid .student-spp-month-status {
  background: #10b981;
  color: #ffffff;
}

.student-spp-month-cell.status-unpaid .student-spp-month-status {
  background: #f59e0b;
  color: #ffffff;
}

/* Tab Navigation for Student Panel */
.student-tabs-bar {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  padding-bottom: 4px;
}

.student-tab-item {
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.student-tab-item:hover {
  color: #047857;
}

.student-tab-item.active {
  color: #047857;
  border-bottom-color: #059669;
}

/* Realistic Bank Cards */
.virtual-bank-card {
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.virtual-bank-card:hover {
  transform: translateY(-2px);
}

.virtual-bank-card.bsi-theme {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #022c22 100%);
}

.virtual-bank-card.jateng-theme {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0c4a6e 100%);
}

.virtual-bank-card-chip {
  width: 38px;
  height: 28px;
  background: linear-gradient(135deg, #fcd34d 0%, #d97706 100%);
  border-radius: 6px;
  margin-bottom: 12px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

.virtual-bank-card-num {
  font-family: 'Courier New', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
