/* Promzona login — admin & staff */

.staff-login-page,
.admin-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: Montserrat, Inter, system-ui, sans-serif;
  background: var(--ux-bg, #13152a);
  color: var(--ux-text, #f0f2ff);
  overflow-x: hidden;
}

.st-login-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(224, 26, 58, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(91, 108, 255, 0.12), transparent 50%),
    var(--ux-bg, #13152a);
}

.admin-login-page .st-login-bg {
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(124, 156, 255, 0.14), transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(224, 26, 58, 0.16), transparent 55%),
    var(--ux-bg, #13152a);
}

.st-login-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.st-login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px;
  gap: 20px;
}

.st-login-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(980px, 100%);
  gap: 12px;
}

.st-login-top__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ux-text);
}

.st-login-top__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--ux-card, #252b48);
  border: 1px solid var(--ux-border-strong, rgba(255, 255, 255, 0.12));
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--ux-shadow, 0 8px 32px rgba(0, 0, 0, 0.35));
}

.st-login-top__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-login-top__logo-fallback {
  font-size: 22px;
  font-weight: 800;
  color: var(--site-red, #e01a3a);
}

.st-login-top__text strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.st-login-top__text small {
  display: block;
  font-size: 11px;
  color: var(--ux-muted, #8b93b8);
  margin-top: 2px;
}

.st-login-theme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--ux-border-strong);
  background: var(--ux-card);
  color: var(--ux-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.st-login-card {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--ux-border-strong, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  overflow: hidden;
  background: var(--ux-card, #252b48);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.st-login-brand {
  padding: 36px 32px;
  background: linear-gradient(155deg, rgba(224, 26, 58, 0.35) 0%, rgba(37, 43, 72, 0.95) 45%, var(--ux-card) 100%);
  border-right: 1px solid var(--ux-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-login-page .st-login-brand {
  background: linear-gradient(155deg, rgba(124, 156, 255, 0.22) 0%, rgba(224, 26, 58, 0.2) 40%, var(--ux-card) 100%);
}

.st-login-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-dim, rgba(224, 26, 58, 0.18));
  color: #ff8a9a;
  border: 1px solid rgba(224, 26, 58, 0.35);
}

.st-login-brand__badge--super {
  background: rgba(124, 156, 255, 0.15);
  color: #b8c8ff;
  border-color: rgba(124, 156, 255, 0.35);
}

.st-login-brand h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.st-login-brand > p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ux-muted);
  max-width: 36ch;
}

.st-login-features {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.st-login-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--ux-border);
}

.st-login-feature__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--accent-dim);
  color: var(--site-red, #e01a3a);
}

.admin-login-page .st-login-feature__icon--super {
  background: rgba(124, 156, 255, 0.15);
  color: #9eb4ff;
}

.st-login-feature strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.st-login-feature small {
  display: block;
  font-size: 11px;
  color: var(--ux-muted);
  line-height: 1.4;
}

.st-login-form-panel {
  padding: 36px 32px;
  background: var(--ux-bg-elevated, #1a1d35);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.st-login-form-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.st-login-form-panel .lead {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ux-muted);
}

.st-login-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.st-login-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--ux-border-strong);
  background: rgba(0, 0, 0, 0.15);
  color: var(--ux-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.st-login-tab.active {
  background: linear-gradient(135deg, var(--site-red, #e01a3a), var(--site-red-dark, #c8102e));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 16, 46, 0.3);
}

.st-login-field {
  margin-bottom: 14px;
}

.st-login-field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ux-muted);
  margin-bottom: 6px;
}

.st-login-field label .material-symbols-outlined {
  font-size: 16px;
}

.st-login-field .form-control {
  background: var(--ux-input-bg, rgba(0, 0, 0, 0.25));
  border: 1px solid var(--ux-border-strong);
  color: var(--ux-text);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
}

.st-login-field .form-control::placeholder {
  color: rgba(139, 147, 184, 0.7);
}

.st-login-field .form-control:focus {
  background: rgba(0, 0, 0, 0.32);
  border-color: var(--site-red, #e01a3a);
  box-shadow: 0 0 0 3px var(--accent-dim);
  color: var(--ux-text);
}

.st-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--site-red, #e01a3a), var(--site-red-dark, #c8102e));
  box-shadow: 0 4px 16px rgba(200, 16, 46, 0.35);
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.st-login-submit--success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.st-login-submit:hover {
  filter: brightness(1.06);
  color: #fff;
}

.st-login-submit:active {
  transform: scale(0.99);
}

.st-login-hint {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ux-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ux-border);
}

.st-login-hint a {
  color: #9eb4ff;
  text-decoration: none;
  font-weight: 600;
}

.st-login-hint a:hover {
  text-decoration: underline;
}

.st-login-footer {
  width: min(980px, 100%);
  text-align: center;
  font-size: 12px;
  color: var(--ux-muted);
}

.st-login-footer a {
  color: var(--ux-muted);
  text-decoration: none;
  margin: 0 8px;
}

.st-login-footer a:hover {
  color: var(--ux-text);
}

#statusBox {
  border-radius: 10px;
  font-size: 13px;
  margin-top: 14px;
}

.d-none { display: none !important; }

html[data-admin-theme="light"] .staff-login-page,
html[data-admin-theme="light"] .admin-login-page {
  background: #f1f3f8;
  color: #0f172a;
}

html[data-admin-theme="light"] .st-login-bg {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(200, 16, 46, 0.07), transparent 50%),
    radial-gradient(ellipse 70% 60% at 100% 100%, rgba(30, 41, 59, 0.04), transparent 55%),
    #f1f3f8;
}

html[data-admin-theme="light"] .st-login-bg::after {
  opacity: 0.035;
}

html[data-admin-theme="light"] .st-login-top__brand {
  color: #0f172a;
}

html[data-admin-theme="light"] .st-login-top__text small {
  color: #475569;
}

html[data-admin-theme="light"] .st-login-top__logo {
  background: #fff;
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

html[data-admin-theme="light"] .st-login-theme {
  background: #fff;
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

html[data-admin-theme="light"] .st-login-card {
  background: #fff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

html[data-admin-theme="light"] .st-login-brand {
  background: linear-gradient(160deg, #fff5f7 0%, #ffffff 55%, #f8fafc 100%);
  border-right-color: #e2e8f0;
}

html[data-admin-theme="light"] .admin-login-page .st-login-brand {
  background: linear-gradient(160deg, #f0f4ff 0%, #fff5f7 35%, #ffffff 100%);
}

html[data-admin-theme="light"] .st-login-brand h1 {
  color: #0f172a;
}

html[data-admin-theme="light"] .st-login-brand > p {
  color: #334155;
}

html[data-admin-theme="light"] .st-login-brand__badge {
  background: #ffe4e8;
  color: #9f1239;
  border-color: #fecdd3;
}

html[data-admin-theme="light"] .st-login-brand__badge--super {
  background: #e0e7ff;
  color: #3730a3;
  border-color: #c7d2fe;
}

html[data-admin-theme="light"] .st-login-feature {
  background: #fff;
  border: 1px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html[data-admin-theme="light"] .st-login-feature strong {
  color: #0f172a;
}

html[data-admin-theme="light"] .st-login-feature small {
  color: #475569;
}

html[data-admin-theme="light"] .st-login-feature__icon {
  background: #ffe4e8;
  color: #be123c;
}

html[data-admin-theme="light"] .admin-login-page .st-login-feature__icon--super {
  background: #e0e7ff;
  color: #4338ca;
}

html[data-admin-theme="light"] .st-login-form-panel {
  background: #ffffff;
}

html[data-admin-theme="light"] .st-login-form-panel h2 {
  color: #0f172a;
}

html[data-admin-theme="light"] .st-login-form-panel .lead {
  color: #475569;
}

html[data-admin-theme="light"] .st-login-field label {
  color: #334155;
}

html[data-admin-theme="light"] .st-login-field .form-control {
  background: #fff;
  color: #0f172a;
  border: 1.5px solid #94a3b8;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-admin-theme="light"] .st-login-field .form-control::placeholder {
  color: #64748b;
}

html[data-admin-theme="light"] .st-login-field .form-control:focus {
  border-color: #c8102e;
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
  background: #fff;
}

html[data-admin-theme="light"] .st-login-tabs {
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
}

html[data-admin-theme="light"] .st-login-tab {
  background: transparent;
  border-color: transparent;
  color: #475569;
}

html[data-admin-theme="light"] .st-login-tab.active {
  background: linear-gradient(135deg, #e01a3a, #c8102e);
  color: #fff;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.28);
}

html[data-admin-theme="light"] .st-login-hint {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

html[data-admin-theme="light"] .st-login-hint a {
  color: #c8102e;
}

html[data-admin-theme="light"] .st-login-footer {
  color: #475569;
}

html[data-admin-theme="light"] .st-login-footer a {
  color: #334155;
}

html[data-admin-theme="light"] .st-login-footer a:hover {
  color: #c8102e;
}

@media (max-width: 860px) {
  .st-login-card {
    grid-template-columns: 1fr;
  }

  .st-login-brand {
    border-right: none;
    border-bottom: 1px solid var(--ux-border);
  }

  .st-login-features {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .st-login-brand,
  .st-login-form-panel {
    padding: 24px 20px;
  }

  .st-login-top {
    flex-direction: column;
    align-items: stretch;
  }

  .st-login-theme {
    justify-content: center;
  }
}
