/* SIMAKAD – tampilan halaman login (gaya Kliks, tema "Indigo Akademik").
   File buatan tangan, tidak dikelola CodeCharge. */

:root {
  --sa-brand-950: #13113a;
  --sa-brand-900: #1e1b4b;
  --sa-brand-800: #312e81;
  --sa-brand-700: #4338ca;
  --sa-brand-600: #4f46e5;
  --sa-brand-500: #6366f1;
  --sa-brand-100: #e0e7ff;
  --sa-brand-50: #eef2ff;
  --sa-amber: #f59e0b;
  --sa-amber-soft: #fef3c7;
  --sa-ink: #14122b;
  --sa-text: #3a3f55;
  --sa-muted: #6b7280;
  --sa-line: #e4e6f0;
  --sa-bg: #f4f5fb;
  --sa-radius-sm: 10px;
  --sa-shadow-lg: 0 2px 4px rgba(30, 27, 75, .06), 0 24px 48px rgba(30, 27, 75, .14);
  --sa-font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.sa {
  font-family: var(--sa-font); font-size: 15px; line-height: 1.55; color: var(--sa-text);
  background: var(--sa-bg); -webkit-font-smoothing: antialiased;
}
.sa a { color: var(--sa-brand-700); }
.sa a:hover { color: var(--sa-brand-900); }
.sa img { max-width: 100%; }

.sa-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* ---------- Panel kiri (identitas) ---------- */
.sa-auth__brand {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 560px at -10% 110%, rgba(245, 158, 11, .24), transparent 60%),
    radial-gradient(700px 500px at 110% -10%, rgba(99, 102, 241, .45), transparent 60%),
    linear-gradient(160deg, var(--sa-brand-800) 0%, var(--sa-brand-950) 100%);
  padding: 44px 56px; display: flex; flex-direction: column; gap: 28px;
}
.sa-auth__brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.sa-auth__brand > * { position: relative; z-index: 1; }

.sa-inst { display: flex; align-items: center; gap: 14px; }
.sa-inst img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; background: #fff; padding: 3px; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.sa-inst span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.sa-inst strong { display: block; font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.sa-inst strong b { color: var(--sa-amber); }

.sa-auth__intro { margin-top: auto; max-width: 540px; }
.sa-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--sa-amber);
}
.sa-eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--sa-amber); border-radius: 2px; }
.sa-auth__intro h1 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; margin: 12px 0 14px; letter-spacing: -.02em; color: #fff; }
.sa-auth__intro p { margin: 0; font-size: 15.5px; color: rgba(255, 255, 255, .78); }

.sa-auth__art { width: 100%; max-width: 470px; height: auto; margin: 4px 0 auto; }

.sa-features { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-features li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); font-size: 13px; font-weight: 600;
}
.sa-features i { color: var(--sa-amber); }

/* ---------- Panel kanan (form) ---------- */
.sa-auth__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; background: var(--sa-bg); }
.sa-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 18px;
  box-shadow: var(--sa-shadow-lg); padding: 34px 36px 28px; border: 1px solid rgba(30, 27, 75, .05);
}
.sa-card__head { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.sa-card__head img { width: 52px; height: 52px; object-fit: contain; }
.sa-card__head strong { display: block; font-size: 20px; font-weight: 800; color: var(--sa-ink); letter-spacing: -.01em; line-height: 1.15; }
.sa-card__head strong b { color: var(--sa-brand-600); }
.sa-card__head span { display: block; font-size: 12px; color: var(--sa-muted); letter-spacing: .04em; }
.sa-card h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--sa-ink); letter-spacing: -.01em; }
.sa-card__lead { margin: 0 0 22px; color: var(--sa-muted); font-size: 14.5px; }

.sa-alert {
  display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 11px 14px;
  border-radius: var(--sa-radius-sm); background: #fdecee; color: #8a0f22; border: 1px solid #f6c7cf; font-size: 14px;
}
.sa-alert i { margin-top: 3px; }

.sa-field { margin-bottom: 16px; }
.sa-field label { display: block; font-size: 13px; font-weight: 700; color: var(--sa-ink); margin-bottom: 7px; }
.sa-input { position: relative; }
.sa-input > i.sa-input__icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9499b8; font-size: 14px; pointer-events: none; z-index: 2;
}
.sa-input input, .sa-input select {
  width: 100%; height: 48px; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm);
  padding: 0 14px 0 42px; font: inherit; font-size: 15px; color: var(--sa-ink); background: #fbfbfe;
  transition: border-color .15s, box-shadow .15s, background .15s; outline: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.sa-input select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
.sa-input input::placeholder { color: #9ea3bd; }
.sa-input input:focus, .sa-input select:focus {
  border-color: var(--sa-brand-500); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
.sa-input--pass input { padding-right: 48px; }

/* Select2 di form login */
.sa-input .select2-container { width: 100% !important; }
.sa-input .select2-container--bootstrap4 .select2-selection--single {
  height: 48px !important; border: 1px solid var(--sa-line); border-radius: var(--sa-radius-sm); background: #fbfbfe;
}
.sa-input .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
  line-height: 46px !important; padding-left: 42px !important; font-size: 15px; color: var(--sa-ink);
}
.sa-input .select2-container--bootstrap4 .select2-selection__placeholder { color: #9ea3bd; }
.sa-input .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
  position: absolute; top: 0 !important; bottom: 0; height: 46px !important; right: 10px; width: 20px;
  display: flex; align-items: center; justify-content: center;
}
.sa-input .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow b {
  position: static !important; margin: 0 !important; border-color: #6b7280 transparent transparent transparent !important;
}
.sa-input .select2-container--focus .select2-selection, .sa-input .select2-container--open .select2-selection {
  border-color: var(--sa-brand-500) !important; background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .14) !important;
}
.select2-container--bootstrap4 .select2-dropdown { border-color: var(--sa-line); border-radius: 10px; overflow: hidden; font-family: var(--sa-font); box-shadow: 0 12px 28px rgba(30, 27, 75, .18); }
.select2-container--bootstrap4 .select2-results__option--highlighted { background: var(--sa-brand-600) !important; color: #fff !important; }
.select2-container--bootstrap4 .select2-results__option[aria-selected="true"] { background: var(--sa-brand-100); color: var(--sa-brand-900); }

.sa-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent;
  color: #7c819c; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.sa-eye:hover { background: var(--sa-brand-50); color: var(--sa-brand-700); }
.sa-eye:focus-visible { outline: 2px solid var(--sa-brand-500); outline-offset: 1px; }

.sa-remember { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 6px; font-size: 13.5px; font-weight: 600; color: var(--sa-text); cursor: pointer; user-select: none; }
.sa-remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--sa-brand-600); cursor: pointer; }

.sa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 50px; margin-top: 12px; border: 0; border-radius: var(--sa-radius-sm);
  background: linear-gradient(135deg, var(--sa-brand-600), var(--sa-brand-800)); color: #fff; font: inherit; font-size: 15.5px; font-weight: 700;
  cursor: pointer; transition: filter .15s, transform .05s, box-shadow .15s;
  box-shadow: 0 8px 20px rgba(67, 56, 202, .32);
}
.sa-btn:hover { filter: brightness(1.08); }
.sa-btn:active { transform: translateY(1px); }
.sa-btn:focus-visible { outline: 3px solid var(--sa-amber); outline-offset: 2px; }

.sa-card__help {
  margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--sa-line);
  font-size: 13.5px; color: var(--sa-muted); display: flex; gap: 10px; align-items: flex-start;
}
.sa-card__help i { color: var(--sa-brand-600); margin-top: 3px; }

.sa-auth__foot { margin-top: 22px; font-size: 13px; color: var(--sa-muted); text-align: center; }
.sa-auth__foot a { font-weight: 700; text-decoration: none; }
.sa-auth__foot a:hover { text-decoration: underline; }

/* animasi masuk halus */
@keyframes sa-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sa-card { animation: sa-rise .5s cubic-bezier(.22, .9, .32, 1) both; }
.sa-auth__art { animation: sa-rise .7s .1s cubic-bezier(.22, .9, .32, 1) both; }
@media (prefers-reduced-motion: reduce) { .sa-card, .sa-auth__art { animation: none; } .sa * { transition: none !important; } }

@media (max-width: 960px) {
  .sa-auth { grid-template-columns: 1fr; }
  .sa-auth__brand { padding: 28px 22px 34px; gap: 18px; }
  .sa-auth__intro { margin-top: 6px; }
  .sa-auth__intro h1 { font-size: 26px; }
  .sa-auth__art, .sa-features { display: none; }
  .sa-auth__panel { padding: 0 16px 32px; margin-top: -16px; background: transparent; }
  .sa-card { padding: 28px 22px 24px; }
}
