/* ============================================================
   Login APEL-KWB — page-specific styles
   Tokens come from assets/ds/tokens/*.css (loaded before this file).
   ============================================================ */

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

html, body { margin: 0; padding: 0; background: var(--neutral-950); overflow-x: hidden; }
input::placeholder { color: var(--text-subtle); }
input:focus { outline: none; box-shadow: var(--focus-ring); border-color: var(--border-focus) !important; }

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: linear-gradient(180deg, var(--gold-50) 0%, var(--neutral-50) 38%, var(--green-100) 100%);
  overflow: hidden;
  padding-bottom: 68px; /* room for fixed marquee */
}

.bg-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%; z-index: 0;
}
.bg-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9,33,24,0.55) 0%, rgba(9,33,24,0.25) 30%, rgba(9,33,24,0.35) 70%, rgba(9,33,24,0.65) 100%);
}

.header {
  position: relative; z-index: 2;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; padding: 36px 48px 0; flex-wrap: wrap;
}
.header-brand {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: rgba(255,255,255,0.94); padding: 14px 22px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.header-brand img { height: 72px; width: auto; image-rendering: -webkit-optimize-contrast; }
.header-divider { width: 1px; height: 48px; background: var(--border-default); }
.header-title-lg {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--fs-heading-lg); color: var(--green-900);
  letter-spacing: var(--ls-tight); line-height: 1;
}
.header-title-md {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--fs-heading-md); color: var(--green-700);
  letter-spacing: var(--ls-wide); line-height: 1;
}
.header-gold {
  font-family: var(--font-display); font-weight: var(--fw-extrabold);
  font-size: var(--fs-heading-md); color: var(--gold-600); line-height: 1;
}
.header-tagline { font-size: 10px; font-weight: var(--fw-semibold); color: var(--text-muted); max-width: 260px; line-height: 1.35; }

.header-slogan {
  display: flex; align-items: center; gap: 8px;
  background: var(--green-800); padding: 10px 16px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.header-slogan .hash { color: var(--gold-400); font-size: 22px; font-weight: var(--fw-extrabold); line-height: 1; }
.header-slogan .txt { display: flex; flex-direction: column; line-height: 1.15; }
.header-slogan .txt span { font-size: 12px; font-weight: var(--fw-bold); letter-spacing: var(--ls-wide); }
.header-slogan .txt .white { color: var(--color-white); }
.header-slogan .txt .gold { color: var(--gold-300); }

.sae-badge-row { position: relative; z-index: 2; display: flex; justify-content: flex-start; padding: 20px 48px 0; }
.sae-badge {
  background: var(--green-900); padding: 16px 28px;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: flex; align-items: center;
}
.sae-badge img { height: 44px; width: auto; display: block; }

.main {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 28px 24px 90px; gap: 28px;
}

.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface-card); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 36px 36px 30px;
  display: flex; flex-direction: column; gap: 18px;
}
.login-card-head { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.login-card-head span.kb-overline { color: var(--text-subtle); }
.login-card-head h1 { font-size: var(--fs-display-lg); color: var(--green-700); letter-spacing: var(--ls-tighter); }
.login-card-head p { font-size: var(--fs-body-sm); color: var(--text-muted); line-height: var(--lh-snug); }

.field-group { display: flex; flex-direction: column; gap: 14px; }
.field {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md);
  padding: 0 14px; background: var(--surface-sunken);
}
.field input {
  border: none; background: transparent; flex: 1; padding: 12px 0;
  font-size: var(--fs-body-md); font-family: var(--font-sans); color: var(--text-strong);
}

.field-row { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-body-sm); }
.remember-label { display: flex; align-items: center; gap: 8px; color: var(--text-muted); cursor: pointer; }
.remember-label input { width: 16px; height: 16px; accent-color: var(--green-600); }
.forgot-link { color: var(--green-700); font-weight: var(--fw-semibold); display: flex; align-items: center; gap: 5px; }

.btn-login {
  background: var(--brand-secondary); color: var(--brand-on-secondary);
  border: none; padding: 14px; border-radius: var(--radius-md);
  font-size: var(--fs-body-lg); font-weight: var(--fw-extrabold);
  letter-spacing: var(--ls-wide); cursor: pointer; box-shadow: var(--shadow-md);
  transition: background var(--dur-fast) var(--ease-standard);
}
.btn-login:hover { background: var(--brand-secondary-hover); }

.login-note {
  display: none;
  text-align: center; font-size: var(--fs-caption); color: var(--text-subtle);
  background: var(--surface-sunken); padding: 8px; border-radius: var(--radius-sm);
}
.login-note.show { display: block; }

.aap-line { text-align: center; font-size: var(--fs-body-sm); color: var(--text-muted); }
.aap-line a { color: var(--gold-600); font-weight: var(--fw-bold); }

.app-strip { width: 100%; max-width: 820px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.app-strip .kb-overline { color: var(--green-800); background: rgba(255,255,255,0.55); padding: 4px 12px; border-radius: var(--radius-pill); }
.app-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; width: 100%; }

.app-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 170px; padding: 20px 14px;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
  font-family: var(--font-sans);
  text-decoration: none; /* app-card sekarang <a>, bukan <button> lagi */
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card .icon-wrap {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
}
.app-card .name { font-size: var(--fs-body-sm); font-weight: var(--fw-bold); color: var(--text-strong); text-align: center; line-height: 1.25; }

.footer-copy {
  position: relative; z-index: 2; text-align: center; padding-bottom: 64px;
  font-size: var(--fs-caption); color: var(--text-inverse); text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.marquee-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--green-900); border-top: 3px solid var(--gold-400);
  overflow: hidden; padding: 14px 0;
}
.marquee-track { display: flex; width: max-content; white-space: nowrap; animation: marquee 16s linear infinite; }
.marquee-track span {
  font-size: var(--fs-heading-sm); font-weight: var(--fw-bold); color: var(--color-white); padding: 0 60px;
}

