/* PMB Auth — split-screen login (scoped) */
.auth-login {
  --al-bg: #ececec;
  --al-card: #ffffff;
  --al-text: #111827;
  --al-muted: #6b7280;
  --al-input-bg: #f3f4f6;
  --al-input-border: transparent;
  --al-primary: #4a1b9d;
  --al-primary-hover: #3d1580;
  --al-secondary: #ffac00;
  --al-secondary-hover: #e69b00;
  --al-purple: #4a1b9d;
  --al-error: #dc2626;
  --al-radius: 24px;
  --al-radius-sm: 12px;

  margin: 0;
  min-height: 100vh;
  background: var(--al-bg);
  color: var(--al-text);
  font-family: "Public Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  box-sizing: border-box;
}

.auth-login *,
.auth-login *::before,
.auth-login *::after {
  box-sizing: border-box;
}

[x-cloak] {
  display: none !important;
}

.al-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.al-card {
  display: flex;
  width: 100%;
  max-width: 1100px;
  min-height: 640px;
  background: var(--al-card);
  border-radius: var(--al-radius);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Left hero panel */
.al-hero {
  position: relative;
  flex: 0 0 46%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  background: var(--al-primary);
  color: #fff;
  overflow: hidden;
}

.al-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../images/kampus.png") center bottom / cover no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.al-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--al-primary);
  opacity: 0.72;
  pointer-events: none;
}

.al-hero__logo {
  position: relative;
  z-index: 2;
  width: 200px;
  max-width: 100%;
  height: auto;
}

.al-hero__eyebrow {
  position: relative;
  z-index: 2;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.al-hero__eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin-top: 0.75rem;
  background: rgba(255, 255, 255, 0.5);
}

.al-hero__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
}

.al-hero__title {
  margin: 0 0 1rem;
  font-family: "Times", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.al-hero__text {
  margin: 0;
  max-width: 22rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.al-hero__meta {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

.al-hero__hotlines {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.al-hero__hotlines a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #16a34a;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
}

.al-hero__hotlines a:hover {
  background: #15803d;
}

.al-hero__info {
  position: relative;
  z-index: 2;
  margin-top: 1.25rem;
}

.al-hero__info-label {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.al-hero__info-link {
  margin-left: 0.35rem;
  font-weight: 700;
  color: var(--al-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.al-hero__info-link:hover {
  color: #fff;
}

/* Right form panel */
.al-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 3rem;
}

.al-heading {
  margin: 0 0 0.5rem;
  font-family: "Times", Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.al-sub {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--al-muted);
}

.al-field {
  margin-bottom: 1.25rem;
}

.al-field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--al-text);
}

.al-field label small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--al-muted);
}

.al-input-wrap {
  position: relative;
}

.al-input-wrap input {
  display: block;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--al-text);
  background: var(--al-input-bg);
  border: 1px solid var(--al-input-border);
  border-radius: var(--al-radius-sm);
  outline: none;
  transition: box-shadow 0.15s ease;
}

.al-input-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12);
}

.al-input-wrap input::placeholder {
  color: #9ca3af;
}

.al-input-wrap--pass input {
  padding-right: 2.75rem;
}

.al-toggle-pass {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.al-toggle-pass:hover {
  color: var(--al-text);
}

.al-error {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--al-error);
}

.al-submit {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #fff;
  background: var(--al-primary);
  border: none;
  border-radius: var(--al-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.al-submit:hover:not(:disabled) {
  background: var(--al-primary-hover);
}

.al-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.al-actions {
  margin-top: 0.25rem;
}

.al-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.al-divider::before,
.al-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.al-btn-secondary {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.25;
  color: #fff;
  background: var(--al-secondary);
  border: 1px solid var(--al-secondary);
  border-radius: var(--al-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.al-btn-secondary:hover {
  background: var(--al-secondary-hover);
  border-color: var(--al-secondary-hover);
}

.al-copy {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Loading */
.al-loading {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.6);
}

.al-loading__spinner {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: al-spin 0.8s linear infinite;
}

.al-loading h2 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

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

/* Modal */
.al-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.al-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.65);
}

.al-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.75rem;
  background: #fff;
  border-radius: var(--al-radius-sm);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.al-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: var(--al-secondary);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.al-modal__close:hover {
  background: var(--al-secondary-hover);
}

.al-modal__close svg {
  width: 14px;
  height: 14px;
}

.al-modal__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.al-modal__title {
  margin: 0 0 0.25rem;
  font-family: "Times", Georgia, "Times New Roman", serif;
  font-size: 1.375rem;
  font-weight: 700;
  text-align: center;
}

.al-modal__sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  text-align: center;
  color: var(--al-muted);
}

.al-modal__hint {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-align: center;
  color: var(--al-text);
}

.al-modal__help {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.al-modal__help-text {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--al-muted);
  line-height: 1.5;
}

.al-modal__hotlines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.al-modal__hotlines a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: #16a34a;
  border-radius: 9999px;
  transition: background-color 0.15s ease;
}

.al-modal__hotlines a:hover {
  background: #15803d;
}

.al-modal__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.al-modal__list .jalur-stack-link {
  display: block;
  width: 100%;
  text-decoration: none;
}

.al-modal__list .jalur-stack-btn {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: var(--al-radius-sm);
  background-color: var(--al-primary) !important;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-align: center;
  transition: background-color 0.15s ease;
}

.al-modal__list .jalur-stack-btn:hover {
  background-color: var(--al-primary-hover) !important;
}

/* Notifications */
.al-notif-root {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  padding: 1.5rem;
}

.al-notif-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  max-width: 24rem;
  margin-left: auto;
}

.al-notif-item {
  pointer-events: auto;
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.al-notif-body {
  padding: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.al-notif-title {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.al-notif-msg {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--al-muted);
}

.al-notif-close {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.auth-login .bg-amber-200 {
  background-color: #fde68a;
}

.auth-login .bg-red-200 {
  background-color: #fecaca;
}

.auth-login .bg-green-200 {
  background-color: #bbf7d0;
}

.auth-login .bg-blue-200 {
  background-color: #bfdbfe;
}

.auth-login .bg-indigo-500 {
  background-color: #6366f1;
}

.auth-login .text-amber-600 {
  color: #d97706;
}

.auth-login .text-red-600 {
  color: #dc2626;
}

.auth-login .text-green-600 {
  color: #16a34a;
}

.auth-login .text-blue-600 {
  color: #2563eb;
}

.auth-login .text-gray-600 {
  color: #4b5563;
}

@media (max-width: 900px) {
  .al-card {
    flex-direction: column;
    min-height: auto;
  }

  .al-hero {
    flex: none;
    min-height: 220px;
    padding: 1.75rem;
  }

  .al-hero__title {
    font-size: 1.5rem;
  }

  .al-panel {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .al-shell {
    padding: 0.75rem;
  }

  .al-card {
    border-radius: 16px;
  }

  .al-heading {
    font-size: 1.625rem;
  }
}