/* ============================================================
   SduFlow — signup.css
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #1b2d5e;
  --navy-dark:   #111e42;
  --navy-mid:    #2a3f7e;
  --accent:      #4f6ef7;
  --accent-soft: #eef1fe;
  --accent-hover:#3a58e8;
  --gold:        #c8a455;
  --text-main:   #1a1f36;
  --text-muted:  #7b82a0;
  --text-light:  #a8aec8;
  --border:      #e4e7f2;
  --bg-page:     #f4f6fc;
  --white:       #ffffff;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-card: 0 20px 60px rgba(27, 45, 94, 0.10), 0 4px 16px rgba(27, 45, 94, 0.06);
  --transition:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body { height: 100%; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ---------- Background Blobs ---------- */
.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob--top {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.13) 0%, transparent 70%);
}

.bg-blob--bottom {
  width: 480px; height: 480px;
  bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(27, 45, 94, 0.10) 0%, transparent 70%);
}

/* ---------- Page Layout ---------- */
.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  max-width: 980px;
  min-height: 600px;
  margin: 32px 16px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* ---------- Left Side Panel ---------- */
.side-panel {
  width: 320px;
  flex-shrink: 0;
  background: linear-gradient(155deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.side-panel::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.side-panel::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -40px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.12);
}

.side-panel__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Brand */
.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.side-logo {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.side-brand__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

/* Side Content */
.side-content { flex: 1; }

.side-heading {
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 16px;
}

.side-heading em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

.side-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Steps */
.side-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 14px;
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(79, 110, 247, 0.25);
  border: 1.5px solid rgba(79, 110, 247, 0.50);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.step-text {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
}

.step-line {
  width: 1.5px;
  height: 24px;
  background: rgba(255, 255, 255, 0.12);
  margin-left: 15px;
}

/* Side Footer */
.side-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.5px;
  margin-top: 32px;
}

/* ---------- Right Panel ---------- */
.login-panel {
  flex: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  overflow-y: auto;
}

.card {
  width: 100%;
  max-width: 420px;
}

/* Mobile brand */
.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.mobile-logo { width: 32px; height: 32px; object-fit: contain; }
.mobile-brand__name { font-size: 18px; font-weight: 700; color: var(--navy); }

/* Card Header */
.card-header { margin-bottom: 24px; }

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--navy-dark);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ---------- Name Row (two columns) ---------- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ---------- Form Fields ---------- */
.field-group { margin-bottom: 14px; }

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 7px;
  letter-spacing: 0.1px;
}

/* Input */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  pointer-events: none;
  transition: color var(--transition);
}

.input-field {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 42px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--text-main);
  background: var(--bg-page);
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

/* Last name field has no left icon */
.input-field--no-icon {
  padding-left: 14px;
}

.input-field::placeholder { color: var(--text-light); }

.input-field:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.10);
}

.input-wrap:focus-within .input-icon { color: var(--accent); }

/* Eye button */
.eye-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition);
}
.eye-btn:hover { color: var(--accent); }

/* ---------- Password Strength ---------- */
.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity var(--transition);
}

.strength-segment {
  flex: 1;
  height: 3px;
  border-radius: 100px;
  background: var(--border);
  transition: background 0.3s ease;
}

.strength-label {
  font-size: 11px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0.2px;
  min-height: 16px;
  transition: color 0.3s ease;
}

/* ---------- Remember / Terms Row ---------- */
.remember-row { margin-bottom: 18px; }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}

.checkbox-input { display: none; }

.checkbox-custom {
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: var(--bg-page);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
}

.checkbox-input:checked + .checkbox-custom {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}

.checkbox-text {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.terms-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.terms-link:hover { color: var(--accent-hover); }

/* ---------- Primary Button ---------- */
.btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  letter-spacing: 0.2px;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  box-shadow: 0 4px 16px rgba(79, 110, 247, 0.30);
}

.btn-login:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 20px rgba(79, 110, 247, 0.40);
  transform: translateY(-1px);
}

.btn-login:active { transform: translateY(0); }

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---------- Google Button ---------- */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  background: var(--white);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-google:hover {
  border-color: #c8cde0;
  background: var(--bg-page);
  box-shadow: 0 2px 8px rgba(27, 45, 94, 0.07);
}

/* ---------- Sign In Prompt ---------- */
.signin-prompt {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.signin-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}

.signin-link:hover { color: var(--accent-hover); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .page-wrapper {
    flex-direction: column;
    min-height: unset;
    margin: 16px;
  }

  .side-panel {
    width: 100%;
    padding: 28px 24px;
    min-height: unset;
  }

  .side-heading { font-size: 28px; }
  .side-desc { display: none; }
  .side-steps { display: none; }
  .side-content { flex: unset; }
  .side-footer { display: none; }
  .side-brand { margin-bottom: 16px; }

  .login-panel { padding: 24px 20px 32px; }

  .mobile-brand { display: flex; }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
