/* --- GLOBAL VARIABLES & THEME ROOT --- */
:root {
  --bg-main: #0b0f19;
  --card-bg: rgba(22, 30, 46, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary: #3b82f6;
  --primary-glow: rgba(59, 130, 246, 0.3);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    "Plus Jakarta Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* iOS Safari Safe Area & Full Viewport Support */
html,
body {
  min-height: 100%;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

body.admin-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  padding: 20px 16px;
  line-height: 1.5;
  background-image:
    radial-gradient(at 10% 10%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.08) 0px, transparent 50%);
}

body.public-body {
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(at 50% 0%, rgba(59, 130, 246, 0.18) 0px, transparent 60%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
}

/* --- SPLASH SCREEN --- */
.splash-screen {
  position: fixed;
  inset: 0;
  background: #070a12;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}

.splash-screen.fade-out {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.splash-content {
  text-align: center;
}

.splash-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 25px;
}

.splash-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.badge-tag {
  background: var(--primary);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  vertical-align: middle;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 15px auto;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.splash-text {
  color: var(--text-muted);
  font-size: 14px;
}

/* --- APP LAYOUT --- */
.app-wrapper {
  max-width: 96vw !important; /* Expands to fill screen real estate */
  width: 96% !important;
  margin: 0 auto;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  box-shadow: 0 0 20px var(--primary-glow);
  overflow: hidden;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.app-header h1 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #ffffff;
}

.app-header p {
  font-size: 13px;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-profile {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.status-dot.online {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

/* --- METRICS ROW --- */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.metric-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-title {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.metric-value small {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.warning-text {
  color: var(--warning);
}
.active-text {
  color: var(--primary);
}

/* --- GLASS CARDS & DASHBOARD PANELS --- */
.glass-card,
.dashboard-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 24px 20px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 35px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.card-header h2,
.dashboard-card h2 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #ffffff;
}

.live-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--success);
  background: var(--success-bg);
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* --- CAPACITY GRID --- */
#capacityGrid,
.capacity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 35px !important;
  width: 100%;
}

.capacity-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  background: rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.capacity-card:hover {
  transform: translateY(-3px);
}

.capacity-card .week-date {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.8;
}

.capacity-card .count {
  font-size: 20px;
  font-weight: 800;
}

.status-green {
  background: var(--success-bg);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.status-orange {
  background: var(--warning-bg);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.status-red {
  background: var(--danger-bg);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

/* --- TABLES & RESPONSIVE SCROLLING ENGINE --- */
.table-responsive {
  width: 100% !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  display: block;
}

.custom-table {
  width: 100% !important;
  border-collapse: collapse;
  text-align: left;
  table-layout: auto;
}

.custom-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
  background: rgba(15, 23, 42, 0.6);
  white-space: nowrap;
}

.custom-table td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-color);
  font-size: 12.5px;
  vertical-align: middle;
  white-space: nowrap;
}

/* Table action containers and buttons */
.custom-table td div {
  white-space: nowrap !important;
}

.custom-table th:last-child,
.custom-table td:last-child {
  text-align: right;
  padding-right: 14px;
}

.custom-table td button,
.btn-action-pdf,
.btn-action-ical,
.btn-defer,
.btn-reject {
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}

/* --- BUTTONS & INTERACTION STATES --- */
/* --- BUTTONS & INTERACTION STATES --- */
button {
  touch-action: manipulation;
}

button:active {
  transform: scale(0.97);
}

/* Primary Portal Action Buttons (Blue) */
#submitBtn,
#loginBtn,
#checkStatusBtn,
.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  color: #ffffff !important;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transition: all 0.2s ease;
}

#submitBtn:hover,
#loginBtn:hover,
#checkStatusBtn:hover,
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Table Admin Accept Action (Green) */
.btn-accept {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.btn-accept:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

button:disabled {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-muted) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-reject {
  background: #ef4444;
  color: #ffffff;
  border: none;
  transition: background 0.2s ease;
}

.btn-reject:hover {
  background: #dc2626;
}

.btn-defer {
  background: #fbbf24;
  color: #000000;
  border: none;
}

/* --- PUBLIC APPLICATION FORM LAYOUT --- */
.portal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 30px;
  border-bottom: 1px solid var(--border-color);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 15px;
  letter-spacing: -0.3px;
  color: var(--text-muted);
}
.brand-title strong {
  color: #ffffff;
}

.admin-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.admin-link:hover {
  color: #60a5fa;
}

.form-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  width: 100%;
}

.portal-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 30px;
  max-width: 1120px;
  width: 100%;
  align-items: start;
}

.form-card,
.form-container {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 32px 28px;
  width: 100%;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(59, 130, 246, 0.1);
}

.form-header h2,
.form-container h2 {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.form-header p,
.form-container p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d1d5db;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: rgba(11, 15, 25, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  min-height: 44px;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group select option {
  background: #111827;
  color: #ffffff;
}

/* --- RESULT STATUS BOX SCROLL CONTROL --- */
#statusResult {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

#statusResult::-webkit-scrollbar {
  width: 5px;
}

#statusResult::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

#statusResult::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

#statusResult::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================================================
   RESPONSIVE BREAKPOINTS (Tablets & Mobile Screens)
   ========================================================= */

@media screen and (max-width: 900px) {
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .form-card,
  .form-container {
    max-width: 100%;
    margin-top: 0 !important;
  }
}

@media screen and (max-width: 640px) {
  body.admin-body,
  body.public-body {
    padding: 12px 8px;
  }

  .portal-nav {
    padding: 12px 16px;
  }

  .form-wrapper {
    padding: 15px 0;
  }

  .form-card,
  .form-container,
  .glass-card,
  .dashboard-card {
    padding: 16px 12px;
    border-radius: 14px;
  }

  /* Force side-by-side fields to stack cleanly */
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-group input,
  .form-group select {
    font-size: 13px;
    padding: 10px 12px;
  }

  .capacity-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .metrics-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline-controls,
  .search-row {
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
  }

  .month-input,
  .search-input {
    width: 100% !important;
    min-width: 100% !important;
  }

  .card-header-flex,
  .card-header-wrap {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .card-header-flex > div,
  .card-header-wrap > div {
    width: 100%;
  }
}

/* On mobile/tablets, keep min-width to allow clean swiping */
@media screen and (max-width: 1024px) {
  .app-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .custom-table {
    min-width: 820px !important;
  }
}

/* --- INTERNSHIP REGISTRATION FORM DESIGN --- */
body.registration-body {
  background: #d9e1eb;
  color: #11132d;
  background-image: none;
}

.registration-body .portal-nav {
  background: transparent;
  border-bottom: 0;
  padding: 18px 60px;
}

.registration-body .brand-title {
  color: #5d6178;
}

.registration-body .brand-title strong {
  color: #11132d;
}

.registration-body .admin-link {
  color: #4c3ff2;
}

.registration-body .form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 24px 56px;
  gap: 24px;
}

.registration-heading {
  text-align: center;
  max-width: 760px;
}

.registration-heading h1 {
  color: #11132d;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 10px;
}

.registration-heading p {
  color: #5f6978;
  font-size: 14px;
  line-height: 1.6;
}

.registration-body .portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 0;
  max-width: 1180px;
  width: 100%;
  min-height: 690px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(46, 58, 78, 0.18);
}

.registration-body .form-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.registration-card {
  background: #0864f6 !important;
  color: #ffffff;
}

.registration-card-top {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.registration-progress {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.registration-progress span {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.registration-progress span.active {
  background: #ffffff;
}

.registration-section-header {
  background: transparent;
  border-bottom: 0;
  padding: 30px 36px 10px;
  margin: 0;
}

.registration-section-header h2 {
  color: #ffffff;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.registration-section-header p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  font-size: 14px;
  max-width: 520px;
  line-height: 1.6;
}

.registration-card #applyForm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  padding: 24px 36px 36px;
}

.registration-card .form-row {
  display: contents;
}

.registration-card .form-group {
  margin: 0;
}

.registration-card .form-group label,
.registration-status-card .form-group label {
  color: #11132d;
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.registration-card .form-group label {
  color: rgba(255, 255, 255, 0.94);
}

.registration-card .form-group input,
.registration-card .form-group select,
.registration-status-card .form-group input {
  min-height: 44px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #11132d;
  padding: 0 14px;
  font-size: 13px;
  box-shadow: 0 8px 20px rgba(0, 31, 96, 0.1);
}

.registration-status-card .form-group input {
  border-color: #dfe2ea;
  box-shadow: inset 0 1px 2px rgba(17, 19, 45, 0.03);
}

.registration-card .form-group input::placeholder,
.registration-status-card .form-group input::placeholder {
  color: #9aa0af;
}

.registration-card .form-group input:focus,
.registration-card .form-group select:focus,
.registration-status-card .form-group input:focus {
  border-color: #4c3ff2;
  box-shadow: 0 0 0 3px rgba(76, 63, 242, 0.12);
}

.registration-card .form-group select option {
  background: #ffffff;
  color: #11132d;
}

.registration-card input[type="file"] {
  padding: 8px 12px;
}

.registration-file-note {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 500;
}

.registration-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.registration-actions #submitBtn {
  min-width: 180px;
  min-height: 48px;
  border-radius: 8px;
  background: #ffffff !important;
  color: #0864f6 !important;
  box-shadow: 0 14px 24px rgba(0, 31, 96, 0.18);
}

.registration-status-card {
  width: 100%;
  padding: 92px 44px 44px !important;
  background: #ffffff !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.registration-status-card .form-header h2 {
  color: #11132d;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0;
  margin-bottom: 10px;
}

.registration-status-card .form-header p {
  color: #6f7287;
  line-height: 1.7;
}

.registration-status-card #checkStatusBtn {
  min-height: 44px;
  border-radius: 8px;
  background: #0864f6 !important;
  box-shadow: none;
}

.registration-body #statusResult {
  color: #11132d;
}

@media screen and (max-width: 900px) {
  .registration-body .portal-nav {
    padding: 14px 20px;
  }

  .registration-body .portal-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .registration-status-card {
    padding: 36px !important;
  }

  .registration-card #applyForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 640px) {
  .registration-body {
    padding: 0;
  }

  .registration-body .form-wrapper {
    padding: 28px 14px 40px;
  }

  .registration-card-top {
    padding: 0 18px;
  }

  .registration-section-header {
    padding: 16px 18px;
  }

  .registration-card #applyForm {
    grid-template-columns: 1fr;
    padding: 20px 18px 24px;
  }

  .registration-actions {
    justify-content: stretch;
  }

  .registration-actions #submitBtn {
    width: 100%;
  }

  .registration-status-card {
    padding: 22px 18px !important;
  }
}

/* --- STAFF LOGIN EXPERIENCE --- */
body.staff-login-body {
  min-height: 100vh;
  background: #ffffff;
  color: #1b1f2a;
  overflow: hidden;
}

.staff-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
  background: #ffffff;
}

.staff-login-visual {
  position: relative;
  overflow: hidden;
  background: #5f7ff0;
  min-height: 100vh;
  padding: 76px 80px;
  color: #ffffff;
}

.staff-brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.staff-brand-logo {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
  padding: 4px;
}

.staff-brand-logo img,
.staff-login-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.staff-visual-copy {
  position: relative;
  z-index: 2;
  margin-top: 90px;
  max-width: 540px;
}

.staff-visual-copy p {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.92);
}

.staff-visual-copy h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.16;
  font-weight: 500;
  letter-spacing: 0;
}

.staff-visual-copy h1 strong {
  font-weight: 800;
}

.visual-line {
  display: block;
  width: 250px;
  height: 2px;
  margin-top: 54px;
  background: rgba(255, 255, 255, 0.78);
}

.visual-orb,
.visual-pill,
.visual-circle,
.visual-ring,
.visual-dot-grid,
.visual-mark-x,
.visual-arrow {
  position: absolute;
  pointer-events: none;
}

.visual-orb-large {
  width: 430px;
  height: 430px;
  left: -92px;
  top: 126px;
  border-radius: 50%;
  background: rgba(157, 180, 255, 0.45);
}

.visual-orb-small {
  width: 64px;
  height: 64px;
  left: 49px;
  bottom: 170px;
  border-radius: 50%;
  background: #6fd7e8;
}

.visual-pill {
  width: 60px;
  height: 188px;
  top: -32px;
  right: 218px;
  border-radius: 0 0 32px 32px;
  background: linear-gradient(#83a0f8, #ffffff);
  opacity: 0.75;
}

.visual-circle {
  width: 124px;
  height: 124px;
  top: -62px;
  right: 70px;
  border-radius: 50%;
  background: #ffffff;
}

.visual-dot-grid {
  width: 72px;
  height: 40px;
  background-image: radial-gradient(#ffffff 2px, transparent 2px);
  background-size: 16px 16px;
  opacity: 0.95;
}

.visual-dot-grid-top {
  top: 140px;
  right: 104px;
}

.visual-dot-grid-bottom {
  left: 82px;
  bottom: 78px;
}

.visual-mark-x {
  left: 196px;
  bottom: 126px;
  color: #ffffff;
  font-size: 46px;
  line-height: 1;
  font-weight: 300;
}

.visual-ring {
  width: 318px;
  height: 318px;
  right: -10px;
  bottom: -126px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
}

.visual-ring::before {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  left: 48px;
  top: 48px;
  border-radius: 50%;
  background: #60c9dc;
}

.visual-ring::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  right: 40px;
  top: 18px;
  border-radius: 50%;
  background: #8de0ea;
}

.visual-arrow {
  right: 86px;
  top: 42%;
  width: 122px;
  height: 122px;
  border: 16px solid #ffffff;
  border-radius: 50%;
  background: #9ee0e7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 300;
}

.staff-login-panel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
  background: #ffffff;
}

.staff-back-link {
  position: absolute;
  top: 28px;
  right: 34px;
  color: #5f7ff0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.staff-login-card {
  width: min(100%, 396px);
}

.staff-login-header {
  margin-bottom: 38px;
}

.staff-login-logo {
  width: 58px;
  height: 58px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #f4f7ff;
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 18px;
}

.staff-login-header h2 {
  color: #5f7ff0;
  font-size: clamp(2.6rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 14px;
}

.staff-login-header p {
  color: #707686;
  font-size: 14px;
  line-height: 1.6;
}

.staff-login-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.staff-field label {
  display: block;
  color: #1d1d22;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 16px;
}

.staff-field input {
  width: 100%;
  min-height: 58px;
  border: 1.4px solid #8e8e8e;
  border-radius: 30px;
  background: #ffffff;
  color: #1d1d22;
  padding: 0 22px;
  font-size: 15px;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.staff-field input::placeholder {
  color: #8f8f95;
}

.staff-field input:focus {
  border-color: #5f7ff0;
  box-shadow: 0 0 0 4px rgba(95, 127, 240, 0.16);
}

.remember-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #777b84;
  font-size: 15px;
  cursor: pointer;
  margin-top: -2px;
}

.remember-row input {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #1f2430;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}

.remember-row input:checked {
  border-color: #5f7ff0;
  background: #5f7ff0;
  box-shadow: inset 0 0 0 5px #ffffff;
}

#loginBtn.staff-login-button {
  width: 100%;
  min-height: 58px;
  border-radius: 30px;
  background: #5f7ff0 !important;
  box-shadow: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  margin-top: 6px;
}

#loginBtn.staff-login-button:hover {
  background: #4e70ea !important;
  box-shadow: 0 14px 28px rgba(95, 127, 240, 0.24);
}

.staff-login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 36px 0 26px;
  color: #81838b;
  font-size: 14px;
}

.staff-login-divider span {
  height: 1px;
  background: #9a9a9a;
}

.staff-login-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.staff-login-meta span {
  height: 56px;
  border: 1.4px solid #9a9a9a;
  border-radius: 28px;
  position: relative;
}

.staff-login-meta span::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  border: 4px solid #5f7ff0;
}

.staff-login-meta span:nth-child(2)::after {
  border-color: #32c2df;
  border-radius: 3px;
}

.staff-login-meta span:nth-child(3)::after {
  width: 28px;
  height: 8px;
  border: 0;
  border-radius: 8px;
  background: #5f7ff0;
  transform: translate(-50%, -50%) rotate(30deg);
}

.staff-login-error {
  display: none;
  color: #ef4444;
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

@media screen and (max-width: 980px) {
  body.staff-login-body {
    overflow-y: auto;
  }

  .staff-login-shell {
    grid-template-columns: 1fr;
  }

  .staff-login-visual {
    min-height: 340px;
    padding: 38px 28px;
  }

  .staff-visual-copy {
    margin-top: 42px;
  }

  .staff-visual-copy p {
    font-size: 18px;
  }

  .staff-visual-copy h1 {
    font-size: 2.7rem;
  }

  .visual-line {
    margin-top: 28px;
    width: 180px;
  }

  .visual-arrow {
    right: 28px;
    top: auto;
    bottom: 34px;
    width: 84px;
    height: 84px;
    border-width: 10px;
    font-size: 28px;
  }

  .staff-login-panel {
    min-height: auto;
    padding: 44px 24px 54px;
  }
}

@media screen and (max-width: 560px) {
  .staff-login-visual {
    display: none;
  }

  .staff-login-panel {
    min-height: 100vh;
    padding: 34px 22px;
  }

  .staff-back-link {
    left: 22px;
    right: auto;
  }

  .staff-login-logo {
    display: flex;
  }

  .staff-login-header {
    margin-top: 42px;
    margin-bottom: 30px;
  }

  .staff-login-header h2 {
    font-size: 2.45rem;
  }

  .staff-login-meta {
    gap: 12px;
  }
}

