/* ============================================================
   KopDes Pintar — auth.css
   Modern, professional enterprise authentication screen
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #090d16;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

/* Subtle background accent glow */
.auth-page::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(225,29,72,.15) 0%, transparent 65%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.auth-page::after {
  content: '';
  position: absolute;
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 65%);
  bottom: -150px; left: -100px;
  pointer-events: none;
}

/* Main card */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #111827;
  border: 1px solid #1e293b;
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  position: relative;
  z-index: 1;
  animation: slideUp .35s ease;
}

/* Brand header */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.auth-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  display: grid; place-items: center;
  font-size: 18px; font-weight: 800; color: white;
  box-shadow: 0 6px 16px rgba(225,29,72,.4);
  flex-shrink: 0;
}
.auth-brand-text h1 {
  font-size: 18px; font-weight: 800;
  color: #f8fafc; letter-spacing: -0.025em;
}
.auth-brand-text p {
  font-size: 11px; color: #94a3b8;
  font-weight: 500; margin-top: 2px;
}

/* Tab switcher */
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #1f2937;
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  gap: 4px;
}
.auth-tab {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12px; font-weight: 700;
  color: #94a3b8;
  transition: var(--transition);
  text-align: center;
  cursor: pointer;
  background: transparent;
  border: none;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.auth-tab.active {
  background: #111827;
  color: #f8fafc;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

/* Panels */
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeIn .2s ease; }

/* Form inputs */
.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.auth-form-group label {
  font-size: 11px; font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase; letter-spacing: .05em;
}
.auth-input, .auth-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  background: #1f2937;
  color: #f8fafc;
  font-family: var(--font);
  font-size: 13px; font-weight: 500;
  transition: var(--transition);
}
.auth-input::placeholder { color: #64748b; }
.auth-input:focus, .auth-select:focus {
  outline: none;
  border-color: #f43f5e;
  background: #111827;
  box-shadow: 0 0 0 3px rgba(244,63,94,.18);
}
.auth-select option { background: #111827; color: white; }

/* Role hint */
.role-hint {
  padding: 10px 12px;
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.2);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 16px;
}
.role-hint.hidden { display: none; }
.secret-field { display: none; }
.secret-field.visible { display: block; }

/* Submit Button */
.auth-btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: white;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(225,29,72,.4);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer;
  margin-top: 4px;
}
.auth-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(225,29,72,.5);
}
.auth-btn:disabled {
  opacity: .6; cursor: not-allowed; transform: none;
}

/* Error box */
.auth-error {
  padding: 10px 14px;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  font-size: 12px; color: #fca5a5;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; animation: fadeIn .2s ease; }

/* Quick demo section */
.quick-demo-box {
  margin-top: 20px;
  padding: 14px;
  background: #1f2937;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
}
.demo-btn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.demo-btn {
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11px; font-weight: 700;
  border: 1px solid transparent;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  transition: var(--transition);
}
.demo-btn.admin  { background: rgba(225,29,72,.15); color: #f87191; border-color: rgba(225,29,72,.3); }
.demo-btn.umkm   { background: rgba(37,99,235,.15);  color: #60a5fa; border-color: rgba(37,99,235,.3); }
.demo-btn.wisata { background: rgba(16,185,129,.15); color: #34d399; border-color: rgba(16,185,129,.3); }
.demo-btn:hover  { transform: translateY(-1px); }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: #64748b;
}

@media (max-width: 480px) {
  .auth-card { padding: 24px; }
  .demo-btn-grid { grid-template-columns: 1fr; }
}
