/* GTK Kemendikdasmen - auth split screen (login/roles) */

.auth-wrapper {
  min-height: 100vh;
  overflow-x: hidden;
}

.auth-wrapper .row {
  flex-wrap: nowrap;
}

.auth-split-panel {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(160deg, #0d4d91 0%, #06315c 100%);
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}

.auth-split-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  opacity: 0.6;
}

.auth-split-panel::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
  right: -160px;
  bottom: -180px;
}

.auth-split-logos {
  position: absolute;
  z-index: 1;
  top: 7rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.auth-split-logos img {
  height: 72px;
  width: auto;
}

.auth-split-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  color: #fff;
}

.auth-split-inner .auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}

.auth-split-inner h2 {
  font-weight: 700;
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
}

.auth-split-inner p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 0;
}

.auth-split-inner .auth-split-foot {
  margin-top: 3rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

.auth-content-panel {
  background: #fff;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  box-sizing: border-box;
}

.auth-form-wrap {
  width: 100%;
  min-width: 0;
  max-width: 400px;
  box-sizing: border-box;
}

.auth-logo-row {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.auth-logo-row img {
  height: 44px;
  width: auto;
}

.auth-form-wrap h4 {
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin-bottom: 4px;
  color: #16213a;
}

.auth-form-wrap h6 {
  text-align: center;
  color: #8a94a6;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 1.75rem;
}

.auth-form-wrap .form-group label {
  font-weight: 600;
  font-size: 13px;
  color: #495366;
}

.auth-form-wrap .form-control {
  border-radius: 12px;
  border: 1px solid #e3e7ee;
  padding: 11px 16px;
  font-size: 14px;
  background: #f8f9fc;
}

.auth-form-wrap .form-control:focus {
  border-color: #0d4d91;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(13, 77, 145, 0.12);
}

.auth-form-wrap .input-group {
  border-radius: 12px;
  overflow: hidden;
}

.auth-form-wrap .input-group .form-control {
  border-radius: 0;
  border-right: none;
}

.auth-form-wrap .input-group-append {
  display: flex;
  align-self: stretch;
}

.auth-form-wrap .input-group-append .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  height: auto;
  padding: 0 16px;
  border-radius: 0;
  border: 1px solid #e3e7ee;
  border-left: none;
  background: #f8f9fc;
  color: #8a94a6;
}

.auth-form-wrap .input-group-append .btn:hover {
  background: #eef1f6;
}

.btn-auth-submit {
  border-radius: 999px;
  padding: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px -6px rgba(13, 77, 145, 0.55);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.5rem 0;
  color: #b0b7c3;
  font-size: 13px;
}

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

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #e3e7ee;
  background: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  white-space: normal;
  color: #33394d;
  transition: all 0.2s ease;
}

.btn-google:hover {
  border-color: #0d4d91;
  background: #f8fafd;
  color: #0d4d91;
  box-shadow: 0 4px 14px -6px rgba(13, 77, 145, 0.35);
}

.btn-google + .btn-google {
  margin-top: 10px;
}

.auth-form-wrap a.btn-outline-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #e3e7ee;
  background: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  color: #33394d;
  transition: all 0.2s ease;
}

.btn-google svg {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  .auth-content-panel {
    min-height: 100vh;
  }
}

/* ==========================================================================
   Themed variants — aligned to the official GTK Kemendikdasmen brand
   (gtk.kemendikdasmen.go.id/landingpage): primary #0d4d91, secondary
   #0ea5e9, dark #0b1f3a, set in Source Sans Pro. Scoped to body.theme-*
   so the default/admin auth screens are untouched. Only the right-hand
   form panel is restyled; the left split panel keeps its default look.
   ========================================================================== */

@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

body.theme-anugerah,
body.theme-apresiasi,
body.theme-pengelola {
  --gtk-primary: #0d4d91;
  --gtk-secondary: #0ea5e9;
  --gtk-dark: #0b1f3a;
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.theme-anugerah .auth-form-wrap,
body.theme-apresiasi .auth-form-wrap,
body.theme-pengelola .auth-form-wrap {
  animation: authFadeUp 0.6s ease 0.05s both;
}

/* Shared card language — mirrors .gtk-card / .gtk-badge on the landing page */
body.theme-anugerah .auth-content-panel,
body.theme-apresiasi .auth-content-panel,
body.theme-pengelola .auth-content-panel {
  background: radial-gradient(140% 140% at 100% 0%, #f7fafc 0%, #eef4fb 55%, #e7f0fa 100%);
}

body.theme-anugerah .auth-form-wrap,
body.theme-apresiasi .auth-form-wrap,
body.theme-pengelola .auth-form-wrap {
  position: relative;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(13, 77, 145, 0.12);
  padding: 2.75rem 2.25rem 2.25rem;
  overflow: hidden;
  box-shadow: 0 20px 55px -28px rgba(13, 77, 145, 0.45);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.theme-anugerah .auth-form-wrap:hover,
body.theme-apresiasi .auth-form-wrap:hover,
body.theme-pengelola .auth-form-wrap:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 65px -24px rgba(13, 77, 145, 0.55);
}

body.theme-anugerah .auth-form-wrap::before,
body.theme-apresiasi .auth-form-wrap::before,
body.theme-pengelola .auth-form-wrap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

body.theme-anugerah .auth-form-wrap h4,
body.theme-apresiasi .auth-form-wrap h4,
body.theme-pengelola .auth-form-wrap h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--gtk-dark);
}

body.theme-anugerah .auth-divider::before,
body.theme-anugerah .auth-divider::after,
body.theme-apresiasi .auth-divider::before,
body.theme-apresiasi .auth-divider::after,
body.theme-pengelola .auth-divider::before,
body.theme-pengelola .auth-divider::after {
  background: rgba(13, 77, 145, 0.2);
}

body.theme-anugerah .btn-google:hover,
body.theme-apresiasi .btn-google:hover,
body.theme-pengelola .btn-google:hover,
body.theme-anugerah .auth-form-wrap a.btn-outline-primary:hover,
body.theme-apresiasi .auth-form-wrap a.btn-outline-primary:hover,
body.theme-pengelola .auth-form-wrap a.btn-outline-primary:hover {
  border-color: var(--gtk-secondary);
  background: #f2f9fe;
  color: var(--gtk-primary);
  box-shadow: 0 10px 26px -12px rgba(14, 165, 233, 0.4);
}

/* ---- Anugerah: brand gradient leading with primary ---- */
body.theme-anugerah .auth-form-wrap::before {
  background: linear-gradient(135deg, var(--gtk-primary) 0%, var(--gtk-secondary) 100%);
}

/* ---- Apresiasi: brand gradient leading with secondary ---- */
body.theme-apresiasi .auth-form-wrap::before {
  background: linear-gradient(135deg, var(--gtk-secondary) 0%, var(--gtk-primary) 100%);
}

/* ---- Pengelola: dark-to-secondary, matching the console/admin tone ---- */
body.theme-pengelola .auth-form-wrap::before {
  background: linear-gradient(135deg, var(--gtk-dark) 0%, var(--gtk-secondary) 100%);
}

body.theme-pengelola .auth-form-wrap .form-group label {
  color: #334155;
}

body.theme-pengelola .auth-form-wrap .form-control {
  background: #f8fafc;
  border-color: #e2e8f0;
}

body.theme-pengelola .auth-form-wrap .form-control:focus {
  border-color: var(--gtk-secondary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

body.theme-pengelola .auth-form-wrap .input-group-append .btn {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

body.theme-pengelola .auth-form-wrap .input-group-append .btn:hover {
  color: var(--gtk-secondary);
  background: #eef8ff;
}

body.theme-pengelola .btn-auth-submit {
  background: linear-gradient(135deg, var(--gtk-dark) 0%, var(--gtk-secondary) 100%);
  border-color: transparent;
  box-shadow: 0 12px 26px -10px rgba(14, 165, 233, 0.5);
}

body.theme-pengelola .btn-auth-submit:hover {
  box-shadow: 0 14px 30px -8px rgba(14, 165, 233, 0.62);
}
