/* =========================================================
   CUSTOM STYLE — UTBK-MK x Telkom University Surabaya
   Tambahkan file ini SETELAH style.css di <head>:
   <link href="assets/css/style-custom.css" rel="stylesheet">
   ========================================================= */

/* ---------- Variabel warna & font (mengikuti telkomuniversity.ac.id) ---------- */
:root {
  --tu-red:        #ef4a45;          /* coral red — tombol utama */
  --tu-red-dark:   #d83a36;
  --tu-red-soft:   #fde1e0;          /* pink soft — tombol secondary */
  --tu-red-softer: #fdf1f1;
  --tu-dark:       #1f2937;
  --tu-darker:     #111827;
  --tu-muted:      #6b7280;
  --tu-bg:         #ffffff;
  --tu-bg-alt:     #f9fafb;
  --tu-card:       #ffffff;
  --tu-border:     #e5e7eb;
  --tu-radius:     16px;
  --tu-radius-lg:  24px;
  --tu-shadow-sm:  0 2px 8px rgba(20, 24, 35, .05);
  --tu-shadow-md:  0 10px 30px rgba(20, 24, 35, .08);
  --tu-shadow-lg:  0 20px 50px rgba(20, 24, 35, .10);
  --tu-font:       'Plus Jakarta Sans', 'Manrope', 'Inter',
                   -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--tu-font);
  color: var(--tu-dark);
  background: var(--tu-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--tu-font);
  font-weight: 700;
  color: var(--tu-dark);
  letter-spacing: -0.01em;
}

p { color: var(--tu-muted); }

a { color: var(--tu-red); transition: color .2s ease; }
a:hover { color: var(--tu-red-dark); text-decoration: none; }

hr {
  border: 0;
  height: 1px;
  background: var(--tu-border);
  margin: 0;
}

/* ---------- Header ---------- */
#header {
  background: rgba(255, 255, 255, .92) !important;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-shadow: var(--tu-shadow-sm);
  padding: 14px 0;
  transition: all .3s ease;
}

#header .container {
  align-items: center;
}

#header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

#header .logo img {
  max-height: 48px;
  width: auto !important;
  object-fit: contain;
  transition: transform .25s ease;
}

#header .logo img:hover { transform: scale(1.04); }

/* ---------- Hero Section ---------- */
#hero {
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(239, 74, 69, .12), transparent 55%),
    radial-gradient(900px 500px at -10% 110%, rgba(239, 74, 69, .05), transparent 60%),
    #ffffff;
  padding-top: 130px;
  padding-bottom: 70px;
}

/* Heading dengan baris kecil + headline besar — meniru "Selamat datang di / Telkom University Surabaya" */
#hero h5 {
  color: var(--tu-darker) !important;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

#hero h5 b { font-weight: 800; }

/* baris "Selamat datang" / "Jalur Beasiswa" — atur via class .hero-eyebrow di HTML jika ada,
   atau lewat span pertama di h5 */
.hero-eyebrow {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 10px;
  letter-spacing: 0;
}

#hero .container > .row { align-items: center; }

#hero .img-fluid {
  border-radius: var(--tu-radius-lg);
  box-shadow: 0 30px 60px rgba(20, 24, 35, .10);
  max-width: 100%;
  height: auto;
}

/* ---------- Form Login (Hero) ---------- */
#hero form {
  background: var(--tu-card);
  padding: 30px 28px;
  border-radius: var(--tu-radius);
  border: 1px solid var(--tu-border);
  box-shadow: var(--tu-shadow-md);
  margin-top: 24px;
  max-width: 480px;
}

#hero .form-group { margin-bottom: 14px; }

#hero .form-control {
  height: 54px;
  border-radius: 12px;
  border: 1.5px solid var(--tu-border);
  background: #fafbfc;
  padding: 0 18px;
  font-size: 15px;
  font-family: inherit;
  color: var(--tu-darker);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#hero .form-control:focus {
  border-color: var(--tu-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(239, 74, 69, .12);
  outline: none;
}

#hero .form-control::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Tombol Login (primary, mirip "Daftar Sekarang") */
.download-btn,
#hero input[type="submit"] {
  display: block;
  width: 100%;
  background: var(--tu-red);
  color: #fff !important;
  border: 0;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(239, 74, 69, .28);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  margin: 8px 0 10px;
}

.download-btn:hover,
#hero input[type="submit"]:hover {
  background: var(--tu-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(239, 74, 69, .35);
}

.download-btn:active,
#hero input[type="submit"]:active {
  transform: translateY(0);
}

/* Tombol Register / Buat Akun (secondary, mirip "Cek Kelulusan") */
.register-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--tu-red-soft);
  color: var(--tu-red-dark) !important;
  border: 0;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  margin-top: 4px;
}

.register-btn:hover {
  background: #fbceca;
  color: var(--tu-red-dark) !important;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Persyaratan Section ---------- */
.persyaratan {
  padding: 80px 0;
  background: #fff;
}

.persyaratan .content {
  align-items: flex-start;
  background: var(--tu-card);
  border: 1px solid var(--tu-border);
  border-radius: var(--tu-radius);
  padding: 36px;
  box-shadow: var(--tu-shadow-sm);
}

.persyaratan img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.persyaratan h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 22px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--tu-red-soft);
  color: var(--tu-dark);
  position: relative;
}

.persyaratan h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 18px;
  background: var(--tu-red);
  border-radius: 3px;
  margin-right: 10px;
  vertical-align: -3px;
}

.persyaratan h3:first-of-type { margin-top: 0; }

.persyaratan p {
  color: var(--tu-muted);
  margin-bottom: 14px;
}

.persyaratan ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.persyaratan ul li {
  position: relative;
  padding: 8px 0 8px 30px;
  color: #3b424d;
  border-bottom: 1px dashed var(--tu-border);
}

.persyaratan ul li:last-child { border-bottom: 0; }

.persyaratan ul li::before {
  content: "\2713";              /* checkmark */
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  background: var(--tu-red-soft);
  color: var(--tu-red);
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

/* ---------- Footer ---------- */
#footer {
  background: var(--tu-dark);
  color: #cfd3da;
  padding-top: 30px;
}

#footer .footer-top {
  padding: 40px 0 20px;
  background: transparent;
}

#footer h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

#footer p { color: #cfd3da; margin: 0; }

#footer a.instagram {
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,.4);
  padding-bottom: 1px;
}

#footer a.instagram:hover {
  color: #ffd1d8;
  border-bottom-color: var(--tu-red);
}

#footer .bxl-instagram {
  color: var(--tu-red);
  font-size: 18px;
  vertical-align: -2px;
  margin-right: 4px;
}

#footer .copyright {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 18px;
  font-size: 14px;
  color: #aab1bb;
}

#footer .copyright strong span { color: #fff; }

/* ---------- Back-to-top ---------- */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tu-red);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tu-shadow-md);
  transition: transform .2s ease, background .2s ease;
  z-index: 999;
}

.back-to-top:hover {
  background: var(--tu-red-dark);
  transform: translateY(-2px);
}

/* =========================================================
   REGISTER FORM (halaman Buat Akun Baru)
   ========================================================= */
.register-card {
  max-width: 520px;
  margin: 100px auto 60px;
  background: var(--tu-card);
  border: 1px solid var(--tu-border);
  border-radius: var(--tu-radius);
  padding: 32px 30px;
  box-shadow: var(--tu-shadow-md);
}

.register-card legend {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tu-dark);
  border: 0;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--tu-red-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.register-card legend i {
  width: 36px;
  height: 36px;
  background: var(--tu-red-soft);
  color: var(--tu-red);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.register-form .form-group { margin-bottom: 16px; }

.register-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--tu-dark);
  margin-bottom: 6px;
}

.register-form .form-control {
  height: 46px;
  border-radius: 10px;
  border: 1px solid var(--tu-border);
  background: #fafbfd;
  padding: 0 14px;
  font-size: 15px;
  color: var(--tu-dark);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  width: 100%;
  box-sizing: border-box;
}

.register-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%235b6470' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
  background-color: #fafbfd;
}

.register-form .form-control:focus {
  border-color: var(--tu-red);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(200, 16, 46, .12);
  outline: none;
}

.register-form .form-control::placeholder { color: #98a0ad; }

.register-form .form-hint {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--tu-muted);
}

/* Tanggal lahir — 3 kolom */
.birth-row { margin: 0 -4px; }
.birth-row > [class*="col-"] { padding: 0 4px; }

/* Gender radio sebagai pill */
.gender-group { display: flex; gap: 10px; }

.gender-option {
  flex: 1;
  position: relative;
  margin: 0;
  cursor: pointer;
}

.gender-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gender-option > span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1.5px solid var(--tu-border);
  border-radius: 10px;
  background: #fafbfd;
  font-weight: 500;
  color: var(--tu-dark);
  transition: all .18s ease;
}

.gender-option > span i { font-size: 18px; }

.gender-option input[type="radio"]:checked + span {
  border-color: var(--tu-red);
  background: var(--tu-red-soft);
  color: var(--tu-red-dark);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, .10);
}

.gender-option:hover > span { border-color: #c4cad4; }

/* Captcha */
.captcha-group label b {
  background: var(--tu-red-soft);
  color: var(--tu-red-dark);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
}

.captcha-input { max-width: 200px; }

/* Tombol Daftar */
.btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: var(--tu-red);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 6px 16px rgba(200, 16, 46, .25);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}

.btn-register:hover {
  background: var(--tu-red-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(200, 16, 46, .30);
}

.btn-register i { font-size: 18px; }

.login-link {
  text-align: center;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--tu-muted);
}

.login-link a {
  color: var(--tu-red);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dotted var(--tu-red);
  padding-bottom: 1px;
}

.login-link a:hover {
  color: var(--tu-red-dark);
  border-bottom-style: solid;
}

@media (max-width: 575.98px) {
  .register-card { margin: 90px 14px 40px; padding: 24px 20px; }
  .register-card legend { font-size: 1.15rem; }
  .gender-group { flex-direction: column; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #hero {
    padding-top: 100px;
    text-align: center;
  }
  #hero h5 { font-size: 1.5rem; }
  #hero form { margin: 24px auto 0; }
  #header .logo img { max-height: 40px; }
  .persyaratan .content { padding: 24px; }
}

@media (max-width: 575.98px) {
  #hero { padding-top: 90px; }
  #hero h5 { font-size: 1.25rem; }
  #hero form { padding: 22px 18px; }
  .persyaratan { padding: 50px 0; }
  .persyaratan h3 { font-size: 1.1rem; }
  #header .logo { gap: 8px; }
  #header .logo img { max-height: 34px; }
}