/* ─────────────────────────────────────────────
   esqbs-daftar-style.css
   UAG – Penerimaan Mahasiswa Baru
   External stylesheet (Bootstrap 5 companion)
───────────────────────────────────────────── */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Unbounded:wght@400;500;700&display=swap');

/* ── Design tokens ── */
:root {
  --accent:       #0a1f5c;
  --accent-light: #1a3a9c;
  --accent-blue:  #2563eb;
  --border:       #dde2ec;
  --bg:           #f7f9fc;
  --text:         #1a1f36;
  --muted:        #6b7280;
  --success:      #22c55e;
  --white:        #ffffff;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
}

/* ══════════════════════════════════════
   HERO SECTION
══════════════════════════════════════ */
.reg-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Left side – background image panel */
.reg-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(0, 1, 101, 1) 30%,
      rgba(230, 186, 30, .65) 100%),
    url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1400&q=80')
    center center / cover no-repeat;
  z-index: 0;
}

/* subtle cross-pattern overlay */
.reg-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* inner flex layout */
.reg-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
}

/* ── Left branding column ── */
.reg-hero__left {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 56px 56px;
}

.reg-hero__logo {
  display: flex;
  text-decoration: none;
}
.reg-hero__logo-mark {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.reg-hero__logo-text {
  line-height: 1.1;
}
.reg-hero__logo-text strong {
  display: block;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.reg-hero__logo-text small {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  font-style: italic;
}

.reg-hero__tagline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reg-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 18px;
  margin-bottom: 24px;
  width: fit-content;
}

.reg-hero__title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 24px;
}

.reg-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  max-width: 400px;
  margin: 0;
}

.reg-hero__footer-text {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin: 0;
}

/* ── Right form column ── */
.reg-hero__right {
  flex: 0 0 520px;
  max-width: 560px;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.reg-form-wrap {
  padding: 40px 36px;
}

/* ── Form Card ── */
.reg-form-card {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow:
    0 8px 32px rgba(10,31,92,.14),
    0 2px 8px rgba(10,31,92,.06);
}

/* ── Form header ── */
.reg-form__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.reg-form__title {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 6px;
}
.reg-form__sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── Two-column grid ── */
.reg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
}
.reg-form-grid .span-full {
  grid-column: 1 / -1;
}

/* ── Labels ── */
.reg-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

/* ── Form controls ── */
.reg-input,
.reg-select {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
  -webkit-appearance: none;
}
.reg-input:focus,
.reg-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(10,31,92,.07);
}
.reg-input::placeholder { color: #b0b8cc; }

/* phone prefix wrapper */
.reg-phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.reg-phone-prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  pointer-events: none;
  user-select: none;
}
.reg-phone-wrap .reg-input {
  padding-left: 42px;
}

/* select arrow */
.reg-select-wrap {
  position: relative;
}
.reg-select-wrap::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: var(--muted);
  pointer-events: none;
}
.reg-select-wrap .reg-select {
  padding-right: 36px;
  cursor: pointer;
}

/* password eye toggle */
.reg-pw-wrap {
  position: relative;
}
.reg-pw-wrap .reg-input {
  padding-right: 42px;
}
.reg-pw-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  transition: color .2s;
}
.reg-pw-eye:hover { color: var(--accent); }

/* ── Submit button ── */
.reg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  background: var(--accent-blue);
  color: #fff;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: .4px;
  transition: background .2s, transform .15s, box-shadow .2s;
  margin-top: 4px;
}
.reg-btn:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,.3);
}
.reg-btn:active { transform: translateY(0); }

/* ── Footer links ── */
.reg-form__links {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.reg-form__links a {
  color: var(--accent-blue);
  font-weight: 600;
  text-decoration: none;
}
.reg-form__links a:hover { text-decoration: underline; }
.reg-form__links .back-link {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
}
.reg-form__links .back-link:hover { color: var(--accent); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .reg-hero__inner {
    flex-direction: column;
    min-height: unset;
  }
  .reg-hero__left {
    flex: none;
    padding: 40px 32px 44px;
    min-height: 55vh;
  }
  .reg-hero__right {
    flex: none;
    max-width: 100%;
    background: transparent;
    padding: 0 0 32px;
  }
  .reg-form-wrap {
    padding: 24px 20px 32px;
  }
  .reg-form-card {
    border-radius: 16px;
    padding: 32px 24px 28px;
  }
}

@media (max-width: 576px) {
  .reg-hero__left {
    padding: 28px 20px 36px;
  }
  .reg-hero__title {
    font-size: clamp(28px, 8vw, 48px);
  }
  .reg-form-grid {
    grid-template-columns: 1fr;
  }
  .reg-form-grid .span-full {
    grid-column: 1;
  }
  .reg-form-wrap {
    padding: 28px 20px 24px;
  }
}