/* =========================================================
   UNINDRA LIBRARY — AUTH PAGE STYLES (LOGIN & REGISTER)
   ========================================================= */
.auth-split-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--surface);
}

/* Panel Kiri */
.auth-left-panel {
  position: relative;
  background-image: url("/assets/Library\ story.png");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
}

.auth-left-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 27, 48, 0.58) 0%,
    rgba(13, 27, 48, 0.42) 45%,
    rgba(11, 22, 40, 0.88) 100%
  );
}

.auth-left-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.auth-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.auth-brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.auth-brand-uni {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.auth-story-copy {
  max-width: 470px;
  padding-bottom: 12px;
}

.auth-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 14px;
}

.auth-headline {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.auth-subheadline {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(241, 245, 249, 0.88);
  margin-bottom: 24px;
}

.auth-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}

/* Panel Kanan */
.auth-right-panel {
  background-color: #fbfcfe;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 40px;
}

.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.auth-help-btn {
  color: var(--text-primary);
  font-weight: 600;
}

.auth-main-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}

.auth-card {
  width: 100%;
  max-width: 430px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: var(--shadow-sm);
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Tab Switcher */
.auth-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  padding: 9px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.16s ease;
}

.auth-tab-btn.active {
  background-color: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.auth-tab-btn.active.register-mode {
  background-color: var(--navy-800);
  color: #ffffff;
}

/* Form Elements */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.field-group input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text-primary);
  font-size: 13.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field-group input::placeholder {
  color: var(--text-muted);
}

.field-group input:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(22, 50, 92, 0.1);
}

.password-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-box input {
  padding-right: 42px;
}

.eye-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.eye-toggle-btn:hover {
  color: var(--text-primary);
}

.field-help-text {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.auth-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.remember-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-check input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--navy-800);
}

.auth-switch-text {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.demo-trigger-card {
  width: 100%;
  padding: 12px 14px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy-800);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.demo-trigger-card:hover {
  background-color: var(--blue-50);
  border-color: #c7d8f8;
}

.admin-restriction-box {
  padding: 11px 13px;
  background-color: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
}

.auth-proto-caption {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: left;
}

.auth-proto-caption.clickable {
  cursor: pointer;
  text-decoration: underline dotted;
}

.auth-proto-caption.clickable:hover {
  color: var(--navy-800);
}

.auth-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 920px) {
  .auth-split-layout {
    grid-template-columns: 1fr;
  }

  .auth-left-panel {
    min-height: 290px;
    padding: 28px 24px;
  }

  .auth-headline {
    font-size: 30px;
  }

  .auth-right-panel {
    padding: 24px 20px;
  }
}