/* Portal login — biru klasik terang + biru langit premium */
.portal-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: #0e223d;
  background: #0f3566;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.portal-visual {
  position: relative;
  overflow: hidden;
  color: #f7fbff;
  display: grid;
  align-content: end;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(180deg, rgba(15,53,102,.22) 0%, rgba(15,53,102,.48) 42%, rgba(10,36,72,.92) 100%),
    url("../img/slides/slide-1-kampus.jpg") center/cover no-repeat;
  animation: portalFade .7s ease;
  border-right: 1px solid rgba(168,218,249,.2);
}
.portal-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 360px at 80% 15%, rgba(116,194,245,.35), transparent 60%),
    linear-gradient(120deg, rgba(15,53,102,.35), transparent 55%);
  pointer-events: none;
}
.portal-visual > * { position: relative; z-index: 1; }
.portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.portal-brand-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.portal-brand-logos .site-mark,
.portal-mark {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #edf7ff, #74c2f5 55%, #2b6cb0);
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.4);
  object-fit: contain;
}
.portal-brand-logos .site-mark.has-logo,
.portal-mark.has-logo {
  object-fit: contain;
  padding: 6px;
  background: #fff;
}
.portal-visual .eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8daf9;
}
.portal-visual h1 {
  margin: 0 0 14px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
  color: #fff;
  text-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.portal-visual p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.05rem;
  color: rgba(247,251,255,.92);
  line-height: 1.55;
}
.portal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.portal-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 700;
  color: #eef6ff;
}

.portal-panel {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(700px 420px at 100% 0%, rgba(116,194,245,.32), transparent 55%),
    linear-gradient(165deg, #f8fcff, #e8f3fb);
  animation: portalUp .65s ease;
}
.portal-card {
  width: min(440px, 100%);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(116,194,245,.35);
  border-radius: 28px;
  padding: 28px 26px 24px;
  box-shadow: 0 28px 70px rgba(15,53,102,.12);
  backdrop-filter: blur(12px);
}
.portal-card-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(116,194,245,.28);
}
.portal-card-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(116,194,245,.4);
  box-shadow: 0 12px 28px rgba(15,53,102,.12);
  padding: 8px;
  margin-bottom: 12px;
}
.portal-card-logo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #edf7ff, #74c2f5 55%, #2b6cb0);
  color: #fff;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 800;
  font-size: 1.55rem;
  padding: 0;
}
.portal-card-school {
  margin: 0 0 4px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0f3566;
  max-width: 22ch;
}
.portal-card-app {
  margin: 0;
  font-size: 0.86rem;
  color: #5a718c;
  font-weight: 600;
}
.portal-card h2 {
  margin: 0 0 6px;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.55rem;
  color: #0f3566;
  letter-spacing: -0.03em;
  text-align: center;
}
.portal-card .sub {
  margin: 0 0 20px;
  color: #5a718c;
  font-size: 0.95rem;
  text-align: center;
}

.portal-field { margin-bottom: 14px; }
.portal-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.86rem;
  font-weight: 750;
  color: #184a86;
}
.portal-field input {
  width: 100%;
  border: 1px solid rgba(116,194,245,.45);
  background: #fff;
  color: #0e223d;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.portal-field input::placeholder { color: rgba(90,113,140,.5); }
.portal-field input:focus {
  border-color: #74c2f5;
  box-shadow: 0 0 0 4px rgba(116,194,245,.22);
}

.portal-submit {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #3a7fc6, #184a86);
  box-shadow: 0 14px 28px rgba(24,74,134,.28);
  transition: transform .18s, filter .18s;
}
.portal-submit:hover { transform: translateY(-2px); filter: brightness(1.04); }

.portal-error {
  background: #ffe5ea;
  color: #b63b4d;
  border: 1px solid rgba(182,59,77,.25);
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.portal-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(116,194,245,.28);
  color: #5a718c;
  font-size: 0.86rem;
}
.portal-foot a {
  color: #184a86;
  font-weight: 750;
  text-decoration: none;
}
.portal-foot a:hover { text-decoration: underline; }
.portal-demo {
  margin: 10px 0 0;
  padding: 12px 13px;
  border-radius: 14px;
  background: #f0f7fc;
  border: 1px solid rgba(116,194,245,.28);
  font-size: 0.84rem;
  color: #5a718c;
}
.portal-demo strong { color: #184a86; }

@keyframes portalFade {
  from { opacity: .6; transform: scale(1.02); }
  to { opacity: 1; transform: none; }
}
@keyframes portalUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .portal-shell { grid-template-columns: 1fr; }
  .portal-visual {
    min-height: 36vh;
    padding: 28px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(168,218,249,.2);
  }
  .portal-visual h1 { max-width: none; font-size: clamp(1.9rem, 8vw, 2.6rem); }
}
