/* ==========================================================================
   Halaman Autentikasi SISO FBE UII
   Mengikuti token Design System FBE UII dan tampilan homepage fbeuii.id.
   Palet: navy #031E53 · gold #F7CA26 · abu netral · sudut 90 derajat.
   ========================================================================== */

:root{
  --navy:        #031E53;
  --navy-deep:   #041159;
  --navy-mid:    #06337B;
  --ink:         #070513;
  --gray:        #3A3A3B;
  --gray-deep:   #2E2E30;
  --gray-mid:    #4C4C4F;
  --muted:       #56688C;
  --muted-2:     #7B7B7C;
  --line:        #EBEBEB;
  --line-2:      #DFE3E9;
  --page:        #F6F7F9;
  --surface:     #FFFFFF;
  --surface-2:   #FCFDFF;
  --gold:        #F7CA26;
  --gold-300:    #FADB6E;
  --gold-50:     #FEFAE9;
  --danger:      #B83434;

  --font-head: "Lato", "Montserrat", system-ui, sans-serif;
  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-nav:  "Montserrat", "Lato", system-ui, sans-serif;

  --maxw:  1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --ease:  cubic-bezier(.2,.7,.3,1);
}

/* ---------------------------------------------------------------- reset -- */
.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after{ box-sizing:border-box; }

html{
  min-height:100%;
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body.auth-page{
  min-height:100vh;
  margin:0;
  background:var(--page);
  color:var(--gray);
  font-family:var(--font-body);
  font-size:1rem;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-wrap:pretty;
}

.auth-page h1,
.auth-page h2,
.auth-page h3{
  margin:0;
  font-family:var(--font-head);
  font-weight:700;
  line-height:1.2;
}

.auth-page p{ margin:0; }
.auth-page ul{ margin:0; padding:0; list-style:none; }
.auth-page img{ max-width:100%; }
.auth-page ::selection{ color:var(--ink); background:var(--gold-300); }
.auth-page :focus-visible{ outline:2px solid var(--navy); outline-offset:3px; }

.auth-wrap{
  width:100%;
  max-width:var(--maxw);
  margin-inline:auto;
  padding-inline:var(--gutter);
}

/* --------------------------------------------------------- skip to content */
.auth-skip{
  position:absolute;
  left:-9999px;
  top:0;
  z-index:99;
  background:var(--gold);
  color:var(--ink);
  font-family:var(--font-nav);
  font-size:.8125rem;
  font-weight:700;
  padding:10px 14px;
  text-decoration:none;
}
.auth-skip:focus{ left:16px; top:12px; }

/* ---------------------------------------------------------------- header -- */
.auth-header{
  position:relative;
  z-index:40;
  background:var(--surface);
  border-bottom:1px solid var(--line);
}

.auth-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:84px;
  padding-block:14px;
}

.auth-logo{ display:inline-flex; align-items:center; text-decoration:none; }
.auth-logo img{
  display:block;
  width:auto;
  height:clamp(38px, 4.4vw, 48px);
}
.auth-logo:focus-visible{ outline:2px solid var(--navy); outline-offset:6px; }

.auth-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:clamp(14px, 1.7vw, 28px);
}
.auth-nav a{
  padding:8px 0;
  border-bottom:2px solid transparent;
  color:var(--ink);
  font-family:var(--font-nav);
  font-size:13px;
  font-weight:600;
  letter-spacing:.01em;
  text-decoration:none;
  transition:color .18s var(--ease), border-color .18s var(--ease);
}
.auth-nav a:hover,
.auth-nav a:focus-visible{
  border-bottom-color:var(--gold);
  color:var(--navy);
  outline:none;
}
.auth-nav a:focus-visible{ outline:2px solid var(--navy); outline-offset:4px; }

/* Menu seluler tanpa JavaScript */
.auth-drawer{ display:none; position:static; }
.auth-drawer__btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border:1px solid var(--line-2);
  background:var(--surface);
  color:var(--navy);
  font-family:var(--font-nav);
  font-size:12px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  list-style:none;
  cursor:pointer;
}
.auth-drawer__btn::-webkit-details-marker{ display:none; }
.auth-drawer__btn::after{ content:"\25BE"; font-size:10px; line-height:1; }
.auth-drawer[open] .auth-drawer__btn{
  border-color:var(--gold);
  background:var(--gold-50);
}
.auth-drawer__btn:focus-visible{ outline:2px solid var(--navy); outline-offset:3px; }

.auth-drawer__panel{
  position:absolute;
  top:100%;
  left:0;
  right:0;
  display:flex;
  flex-direction:column;
  padding:6px var(--gutter) 14px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  background:var(--surface);
  box-shadow:0 18px 32px rgba(3,30,83,.10);
}
.auth-drawer__panel a{
  padding:13px 0;
  border-bottom:1px solid var(--line);
  color:var(--ink);
  font-family:var(--font-nav);
  font-size:13px;
  font-weight:600;
  text-decoration:none;
}
.auth-drawer__panel a:last-child{ border-bottom:0; }
.auth-drawer__panel a:hover,
.auth-drawer__panel a:focus-visible{
  color:var(--navy);
  box-shadow:inset 0 -2px 0 var(--gold);
  outline:none;
}

/* ------------------------------------------------------------------ hero -- */
.auth-hero{
  border-bottom:4px solid var(--gold);
  background:linear-gradient(135deg, var(--gray-deep) 0%, var(--gray) 55%, var(--gray-mid) 100%);
  color:#FFFFFF;
  padding-block:clamp(40px, 6vw, 60px) clamp(36px, 5vw, 52px);
}

.auth-kicker{
  margin-bottom:12px;
  color:var(--gold);
  font-family:var(--font-body);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.auth-hero__title{
  max-width:24ch;
  color:#FFFFFF;
  font-size:clamp(2rem, 4.4vw, 3.375rem);
  line-height:1.1;
  letter-spacing:-.02em;
}

.auth-hero__lead{
  max-width:38rem;
  margin-top:14px;
  color:rgba(255,255,255,.82);
  font-size:1.0625rem;
  line-height:1.65;
}

/* ------------------------------------------------------------------ main -- */
.auth-main{
  padding-block:clamp(36px, 5vw, 56px) clamp(56px, 7vw, 80px);
}

/* ------------------------------------------------------------------ card -- */
.auth-card{
  display:grid;
  grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr);
  overflow:hidden;
  border:1px solid var(--line);
  border-top:4px solid var(--gold);
  background:var(--surface);
  box-shadow:0 18px 40px rgba(3,30,83,.07);
}

/* Panel identitas */
.auth-card__brand{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:18px;
  overflow:hidden;
  padding:clamp(32px, 4vw, 48px);
  background:var(--navy);
  color:#FFFFFF;
}
.auth-card__brand::after{
  position:absolute;
  right:-80px;
  bottom:-90px;
  width:240px;
  height:240px;
  border:1px solid rgba(255,255,255,.16);
  content:"";
  transform:rotate(-8deg);
  pointer-events:none;
}

.auth-chip{
  position:relative;
  z-index:1;
  display:inline-block;
  width:fit-content;
  padding:7px 10px;
  background:var(--gold);
  color:var(--ink);
  font-family:var(--font-nav);
  font-size:.6875rem;
  font-weight:700;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.auth-brand__kicker{
  position:relative;
  z-index:1;
  color:var(--gold);
  font-family:var(--font-body);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}

.auth-brand__title{
  position:relative;
  z-index:1;
  max-width:16ch;
  color:#FFFFFF;
  font-size:clamp(1.5rem, 2.6vw, 2rem);
}

.auth-brand__lead{
  position:relative;
  z-index:1;
  max-width:34ch;
  color:rgba(255,255,255,.78);
  font-size:.9375rem;
  line-height:1.65;
}

.auth-points{
  position:relative;
  z-index:1;
  display:grid;
  gap:10px;
  margin-top:6px;
}
.auth-points li{
  position:relative;
  padding-left:18px;
  color:rgba(255,255,255,.86);
  font-size:.9375rem;
  line-height:1.5;
}
.auth-points li::before{
  position:absolute;
  left:0;
  top:.55em;
  width:8px;
  height:8px;
  background:var(--gold);
  content:"";
}

/* Panel form */
.auth-card__panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:clamp(32px, 4vw, 48px);
  background:var(--surface);
}

.auth-panel__eyebrow{
  margin-bottom:8px;
  color:var(--muted);
  font-family:var(--font-nav);
  font-size:.6875rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.auth-form-title{
  margin-bottom:12px;
  color:var(--navy);
  font-size:clamp(1.5rem, 2.4vw, 1.9rem);
}

.auth-note{
  color:var(--muted);
  font-size:.9375rem;
  line-height:1.6;
}
.auth-note strong{ color:var(--ink); }

/* ------------------------------------------------------------------ form -- */
.auth-form{ margin-top:24px; }

.auth-field{ margin-bottom:18px; }

.auth-field label{
  display:block;
  margin-bottom:8px;
  color:var(--navy);
  font-family:var(--font-nav);
  font-size:.6875rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.auth-input{
  width:100%;
  height:52px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:0;
  background:#FFFFFF;
  color:var(--ink);
  font-family:var(--font-body);
  font-size:1rem;
  box-shadow:none;
  transition:border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.auth-input::placeholder{ color:#9AA3B1; }
.auth-input:focus{
  border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(3,30,83,.12);
  outline:none;
}

/* --------------------------------------------------------------- tombol -- */
.auth-actions{
  display:grid;
  gap:12px;
  margin-top:24px;
}

.auth-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:52px;
  padding:0 24px;
  border:1px solid transparent;
  border-radius:0;
  font-family:var(--font-nav);
  font-size:.875rem;
  font-weight:700;
  line-height:1;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.auth-btn--block{ width:100%; }

.auth-btn--gold{
  border-color:var(--gold);
  background:var(--gold);
  color:var(--ink);
}
.auth-btn--gold:hover,
.auth-btn--gold:focus-visible{
  border-color:var(--navy);
  background:#FFFFFF;
  color:var(--navy);
}

.auth-btn--navy{
  border-color:var(--navy);
  background:var(--navy);
  color:#FFFFFF;
}
.auth-btn--navy:hover,
.auth-btn--navy:focus-visible{
  border-color:var(--gold);
  background:var(--gold);
  color:var(--ink);
}

.auth-btn--ghost{
  border-color:var(--line-2);
  background:transparent;
  color:var(--navy);
}
.auth-btn--ghost:hover,
.auth-btn--ghost:focus-visible{
  border-color:var(--gold);
  background:var(--gold-50);
  color:var(--navy);
}

/* ---------------------------------------------------------------- tautan -- */
.auth-links{
  margin-top:18px;
  color:var(--muted);
  font-size:.875rem;
  line-height:1.7;
  text-align:center;
}
.auth-links a{
  color:var(--navy);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.auth-links a:hover,
.auth-links a:focus-visible{ color:var(--ink); }
.auth-dot{ padding-inline:4px; color:var(--muted-2); }

.auth-help{
  margin-top:26px;
  padding-top:18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:.8125rem;
  line-height:1.6;
}
.auth-help strong{ color:var(--ink); }

/* -------------------------------------------------------------- registrasi -- */
.auth-card--wide{
  grid-template-columns:minmax(0, .78fr) minmax(0, 1.22fr);
}

.auth-form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.auth-field--full{ grid-column:1 / -1; }

.auth-form-grid .auth-field{ margin-bottom:0; }

.auth-hint{
  display:block;
  margin-top:6px;
  color:var(--muted);
  font-size:.75rem;
  line-height:1.5;
}

.auth-input[readonly]{
  background:#F2F6FA;
  color:var(--muted);
  cursor:not-allowed;
}

.auth-select{ position:relative; }
.auth-select select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  padding-right:42px;
}
.auth-select::after{
  position:absolute;
  right:16px;
  top:50%;
  color:var(--navy);
  content:"\25BE";
  font-size:12px;
  line-height:1;
  transform:translateY(-50%);
  pointer-events:none;
}

.auth-notice{
  margin:0 0 22px;
  padding:14px 16px;
  border-left:4px solid var(--gold);
  background:var(--gold-50);
  color:var(--gray);
  font-size:.875rem;
  line-height:1.6;
}
.auth-notice strong{ color:var(--ink); }
.auth-notice a{
  color:var(--navy);
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--gold);
  text-underline-offset:3px;
}

.auth-form .auth-actions{ margin-top:6px; }

/* ----------------------------------------------------------------- alert -- */
.auth-flash{ display:block; margin-bottom:16px; }
.auth-flash:empty{ display:none; }
.auth-flash .alert{ margin-bottom:0; }

.auth-page .alert,
.auth-alert{
  margin:0 0 16px;
  padding:12px 14px;
  border:1px solid transparent;
  border-radius:0;
  font-size:.875rem;
  line-height:1.5;
}

.auth-page .alert-danger,
.auth-alert--danger{
  border-color:#F5C2C2;
  background:#FDECEC;
  color:#8A1C1C;
}
.auth-page .alert-success,
.auth-alert--success{
  border-color:#BFE6D4;
  background:#E8F7F0;
  color:#0D5C42;
}
.auth-page .alert-warning,
.auth-alert--warning{
  border-color:#F0D995;
  background:#FFF6DD;
  color:#7A5200;
}
.auth-page .text-danger,
.auth-page small.text-danger{
  display:block;
  margin-top:6px;
  color:var(--danger);
  font-size:.8125rem;
}

/* ---------------------------------------------------------------- footer -- */
.auth-footer{
  background:var(--gold);
  color:var(--ink);
}

.auth-footer__main{
  padding-block:clamp(32px, 4.5vw, 44px) clamp(28px, 4vw, 36px);
}

.auth-footer__grid{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr);
  align-items:start;
  gap:clamp(24px, 4vw, 56px);
}

.auth-footer__logo-link{
  display:inline-block;
  text-decoration:none;
}
.auth-footer__logo-link:focus-visible{
  outline:2px solid var(--navy);
  outline-offset:6px;
}
.auth-footer__logo{
  display:block;
  width:auto;
  height:38px;
  margin-bottom:14px;
}
.auth-footer__name{
  color:var(--navy);
  font-family:var(--font-head);
  font-size:1.0625rem;
  font-weight:700;
  line-height:1.4;
}

.auth-footer__info{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
}
.auth-footer__title{
  margin:0 0 8px;
  color:var(--navy);
  font-family:var(--font-head);
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.auth-footer p{
  color:#1C2733;
  font-size:.875rem;
  line-height:1.65;
}
.auth-footer a{
  color:var(--navy);
  text-decoration:underline;
  text-underline-offset:2px;
}
.auth-footer a:hover,
.auth-footer a:focus-visible{ color:#8A6D00; }

.auth-footer__bottom{
  background:var(--navy);
  color:#FCFDFF;
}
.auth-footer__bottom p{
  margin:0;
  padding-block:14px;
  color:inherit;
  font-size:.8125rem;
  line-height:1.5;
  text-align:center;
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width:960px){
  .auth-card,
  .auth-card--wide{ grid-template-columns:1fr; }
  .auth-card__brand{ padding:32px 28px; }
  .auth-card__panel{ padding:32px 28px; }
  .auth-footer__grid{ grid-template-columns:1fr; }
}

@media (max-width:640px){
  .auth-form-grid{ grid-template-columns:1fr; }
  .auth-field--full{ grid-column:auto; }
}

@media (max-width:860px){
  .auth-nav{ display:none; }
  .auth-drawer{ display:block; }
  .auth-header__inner{ min-height:72px; }
}

@media (max-width:600px){
  .auth-header__inner{ min-height:64px; padding-block:12px; }
  .auth-logo img{ height:36px; }
  .auth-hero{ padding-block:36px 40px; }
  .auth-hero__lead{ font-size:1rem; }
  .auth-main{ padding-block:28px 48px; }
  .auth-card__brand,
  .auth-card__panel{ padding:26px 20px; }
  .auth-footer__info{ grid-template-columns:1fr; gap:18px; }
  .auth-footer__logo{ height:34px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after{
    transition-duration:.001ms !important;
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
  }
}
