:root {
  --blue:       #1a6fc4;
  --blue-light: #2d8ef5;
  --blue-dark:  #0e4d8a;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --white:      #ffffff;
  --text:       #1e2a3a;
  --muted:      #7a8a9a;
  --border:     #dde4ed;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  scroll-behavior: smooth;
}

html, body {
  min-height: 100vh;
  font-family: 'DM Sans', sans-serif;
}

body { overflow-x: hidden; }

/* ── PAGE ── */
.signup-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 40px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      135deg,
      rgba(10,15,40,0.75) 0%,
      rgba(14,77,138,0.45) 50%,
      rgba(10,15,40,0.8) 100%
    ),
    url('images/university.jpg') center / cover no-repeat;
}




/* ── TOP NAV ── */
.top-nav {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 10px 20px;
  animation: slideDown 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-link-top {
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link-top:hover { color: var(--gold-light); }

.nav-dot {
  width: 4px; height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
}

.nav-active {
  font-size: 13px; font-weight: 600;
  color: #0a0f1e;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.nav-active:hover { box-shadow: 0 4px 16px rgba(201,168,76,0.4); }

/* ── CARD ── */
.signup-card {
  position: relative; z-index: 10;
  width: min(520px, 100%);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(255,255,255,0.28);
  border-left: 1px solid rgba(255,255,255,0.18);
  border-radius: 32px;
  padding: 48px 44px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 40px 100px rgba(0,0,0,0.5),
    0 0 80px rgba(26,111,196,0.08);
  animation:slideUp 0.8s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
.card-header {
  text-align: center;
  margin-bottom: 28px;
  animation: slideUp 0.8s 0.1s cubic-bezier(0.16,1,0.3,1) both;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.logo-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  color: #fff; letter-spacing: 0.02em;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 600;
  color: #fff; line-height: 1.2;
  margin-bottom: 8px;
}
.card-title em { color: var(--gold-light); font-style: italic; }

.card-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  font-weight: 300; line-height: 1.6;
}

/* ── GOOGLE ── */
.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 14px;
  font-size: 14px; font-weight: 600;
  color: #fff; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  backdrop-filter: blur(8px);
  margin-bottom: 16px;
  animation: slideUp 0.8s 0.15s cubic-bezier(0.16,1,0.3,1) both;
}
.btn-google:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-2px);
}

/* ── DIVIDER ── */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
  animation: slideUp 0.8s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.divider hr { flex: 1; border: none; border-top: 1px solid rgba(255,255,255,0.12); }
.divider span { font-size: 11px; color: rgba(255,255,255,0.35); font-weight: 500; letter-spacing: 0.08em; }

/* ── FORM ── */
.form-body { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field:nth-child(1) { animation: slideUp 0.8s 0.22s cubic-bezier(0.16,1,0.3,1) both; }
.field:nth-child(2) { animation: slideUp 0.8s 0.27s cubic-bezier(0.16,1,0.3,1) both; }
.field:nth-child(3) { animation: slideUp 0.8s 0.32s cubic-bezier(0.16,1,0.3,1) both; }
.field:nth-child(4) { animation: slideUp 0.8s 0.37s cubic-bezier(0.16,1,0.3,1) both; }

.field label {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  padding: 13px 44px 13px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  font-size: 14px; color: #fff; outline: none;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  backdrop-filter: blur(6px);
}
.input-wrap input::placeholder { color: rgba(255,255,255,0.3); }
.input-wrap input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.input-icon {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: rgba(255,255,255,0.3);
  pointer-events: none;
  transition: color 0.2s;
}
.input-wrap input:focus ~ .input-icon { color: var(--gold); }

.toggle-pw {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer; font-size: 14px;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}
.toggle-pw:hover { color: var(--gold); }

/* ── STRENGTH ── */
.password-strength {
  display: none;
  align-items: center; gap: 10px;
}
.strength-track {
  flex: 1; height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px; overflow: hidden;
}
.strength-fill {
  height: 100%; width: 0%;
  border-radius: 4px;
  transition: width 0.35s, background 0.35s;
}
.strength-label {
  font-size: 11px; font-weight: 600;
  min-width: 44px; text-align: right;
}

/* ── TERMS ── */
.terms {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.55);
  cursor: pointer; user-select: none;
  animation: slideUp 0.8s 0.4s cubic-bezier(0.16,1,0.3,1) both;
}
.terms input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px; height: 18px; min-width: 18px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: transparent;
  transition: all 0.2s;
}
.terms input:checked + .checkmark {
  background: var(--gold); border-color: var(--gold); color: #0a0f1e;
}
.terms-link { color: var(--gold-light); font-weight: 500; text-decoration: none; }
.terms-link:hover { text-decoration: underline; }

/* ── BUTTON ── */
.btn-signup {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #0a0f1e; border: none; border-radius: 14px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
  animation: slideUp 0.8s 0.45s cubic-bezier(0.16,1,0.3,1) both;
}
.btn-signup:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.5);
  
}
.btn-signup:active { transform: translateY(0); }

/* ── FOOTER ── */
.form-footer {
  text-align: center; font-size: 13px;
  color: rgba(255,255,255,0.45);
  animation: slideUp 0.8s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}
.form-footer a {
  color: var(--gold-light); font-weight: 600; text-decoration: none;
}
.form-footer a:hover { text-decoration: underline; }

/* RESPONSIVE BREAKPOINTS */
 
/* ── Tablet (max 768px) ── */
@media (max-width: 768px) {
 
  .signup-page {
    padding: 80px 16px 32px;
    align-items: flex-start;
  }
 
  /* Top nav — stays centered, shrinks font */
  .top-nav {
    top: 14px;
    padding: 8px 16px;
    gap: 8px;
    max-width: calc(100vw - 32px);
  }
  .nav-link-top { font-size: 12px; }
  .nav-active   { font-size: 12px; padding: 5px 12px; }
 
  /* Card */
  .signup-card {
    padding: 32px 24px;
    border-radius: 24px;
    width: 100%;
  }
 
  .card-header  { margin-bottom: 20px; }
  .card-title   { font-size: 28px; }
  .card-sub     { font-size: 13px; }
  .logo-name    { font-size: 19px; }
  .logo-icon    { width: 40px; height: 40px; font-size: 20px; }
 
  .btn-google   { padding: 12px; font-size: 14px; }
 
  .form-body    { gap: 12px; }
 
  .input-wrap input { padding: 12px 40px 12px 14px; font-size: 14px; }
 
  .btn-signup { padding: 14px; font-size: 15px; }
 
  .form-footer { font-size: 13px; }
}
 
/* ── Small Mobile (max 480px) ── */
@media (max-width: 480px) {
 
  .signup-page { padding: 72px 12px 28px; }
 
  .top-nav { padding: 7px 14px; gap: 6px; }
 
  .signup-card { padding: 24px 16px; border-radius: 20px; }
 
  .card-title { font-size: 24px; }
  .card-sub   { font-size: 12px; }
 
  .logo-wrap  { margin-bottom: 12px; }
  .logo-name  { font-size: 17px; }
 
  .btn-google { font-size: 13px; padding: 11px; }
 
  .form-body  { gap: 10px; }
 
  .field label { font-size: 10px; }
 
  .input-wrap input { font-size: 13px; }
 
  .btn-signup { font-size: 14px; padding: 13px; }
 
  .terms { font-size: 12px; }
}
 
/* ── Extra Small (max 360px) ── */
@media (max-width: 360px) {
  .card-title   { font-size: 21px; }
  .signup-card  { padding: 20px 12px; }
  .top-nav      { padding: 6px 10px; }
  .nav-link-top { font-size: 11px; }
  .nav-active   { font-size: 11px; padding: 4px 10px; }
}