/* ---------- Global ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../imahe/ChatGPT\ Image\ Jul\ 30\,\ 2025\,\ 02_36_23\ PM.png') no-repeat center center fixed;
  background-size: cover;
  display: flex; align-items: center; justify-content: center;
  height: 100vh;
}

a { text-decoration: none; }

/* ---------- Container ---------- */
.container {
  width: 100%; max-width: 1000px; min-height: 560px;
  display: flex; border-radius: 20px; overflow: hidden;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.3), 0 6px 20px 0 rgba(0,0,0,0.3);
}

/* panels */
.panel {
  width: 50%; display: flex; align-items: center; justify-content: center;
  padding: 10px;
}

.panel.gradient { background: #e8def7; color: #350e78; background-size: cover; }

/* white side */
.panel:not(.gradient) { background: #ffffff; color: #333; }

/* ---------- TYPOGRAPHY ---------- */
.title { color: #77629b; margin-bottom: 30px; font-size: 1.8rem; text-align: center; }

.panel.gradient .title { color: #fff; }

.logo { font-size: 70px; color: #350e78; margin-right: 12px; vertical-align: middle; display: inline-block; }

/* ---------- FORM ---------- */
.form { width: 100%; max-width: 450px; }

.form .logo { display: block; margin: 0 auto 20px; height: 80px; width: 70px; }

.input-group { position: relative; margin-bottom: 20px; }

.input-group i {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #535353;
}

.input-group .fa-eye { right: 15px; left: auto; cursor: pointer; }

.input-group input,
.input-group select {
  width: 100%; padding: 12px 15px; padding-left: 45px; border: 2px solid #e9e6e6;
  border-radius: 30px; outline: none; font-size: 0.95rem; transition: border-color .3s; appearance: none;
}

.input-group select { padding-right: 45px; }

.input-group input:focus,
.input-group select:focus { border-color: #2196f3; }

/* ---------- CHECKBOX ---------- */
.checkbox-group {
  align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 0.9rem;
}

.checkbox-group input { margin-right: 8px; }

/* ---------- FORGOT ---------- */
.forgot { font-size: 0.9rem; text-align: center; margin-top: 10px; }

.forgot a { color: #2196f3; }

/* mobile-only login link */
.mobile-login-link {
  display: none;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 8px;
}

.mobile-login-link a { color: #350e78; font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn {
  display: block; width: 50%; margin: 0 auto; text-align: center; padding: 12px 0;
  border: none; border-radius: 30px; font-size: 0.95rem; font-weight: bold; cursor: pointer;
  color: #fff; margin-top: 25px;
  background: linear-gradient(90deg, #9c79da 0%, #350e78 100%);
  transition: opacity .3s, box-shadow .3s;
}

.btn:hover { opacity: 0.9; box-shadow: 0 0 10px 2px #8f6bcc, 0 0 10px 2px #3b206b; }

/* ---------- TEXT BOX ---------- */
.text-box { text-align: center; max-width: 280px; }

.text-box h2 { margin-bottom: 15px; font-size: 1.6rem; }

.text-box p { font-size: 0.9rem; margin-top: 35px; line-height: 1.4; }

.image { margin-top: 40px; width: 100%; }

.input-group .fa-eye { display: none !important; }

/* ---------- REGISTER WRAPPER (legacy) ---------- */
.register-wrapper {
  background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(44,62,80,0.10);
  padding: 38px 38px 24px 38px; max-width: 750px; margin: 60px auto 0 auto;
  font-family: "Poppins", Arial, sans-serif;
}

.register-header { display: flex; align-items: center; justify-content: space-between; }

.register-header h1 { font-size: 2.3rem; font-weight: 700; margin: 0; }

.lang-btn {
  background: #f5f7fb; border: none; border-radius: 50%; font-weight: bold; font-size: 1.05rem;
  width: 40px; height: 40px; cursor: pointer; color: #2060c9; box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}

.register-underline {
  border: none; border-bottom: 3px solid #236cff; width: 54px; margin: 12px 0 28px 0;
}

/* ---------- GRID ---------- */
.register-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px 15px; margin-bottom: 16px;
}

/* ---------- Form-group with icons ---------- */
.form-group {
  position: relative; display: flex; align-items: center; width: 100%;
}

.form-group label {
  font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #181818; display: block;
}

.form-group i {
  position: absolute; left: 15px; color: #575555; font-size: 1.1em; margin-top: 5px;
  pointer-events: none; z-index: 2;
}

.form-group input,
.form-group select {
  width: 100%; padding: 10px 10px; padding-left: 40px; height: 40px;
  border-radius: 30px; border: 2px solid #e9e6e6; background: #ffffff;
  font-size: 13px; outline: none; box-sizing: border-box; transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus { border-color: #236cff; }

.form-group select {
  appearance: none; -webkit-appearance: none;
  background: #f7fbff url('data:image/svg+xml;utf8,<svg fill="gray" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>')
    no-repeat right 14px center / 18px 18px;
}

/* ---------- Misc text ---------- */
.gender-group { margin: 16px 0 8px 0; font-size: 1.07rem; color: #232323; }

.gender-options { display: flex; gap: 32px; margin-top: 6px; font-weight: 500; }

.gender-options label { font-weight: 400; font-size: 1rem; }

.register-next-btn {
  background: linear-gradient(90deg, #236cff 0%, #298aff 100%); color: #fff; font-weight: 700;
  border: none; border-radius: 28px; width: 100%; padding: 17px 0; margin-top: 30px;
  font-size: 1.27rem; letter-spacing: 0.03em; cursor: pointer; box-shadow: 0 3px 20px #2168fa1c;
  transition: background 0.2s;
}

.register-next-btn:hover { background: linear-gradient(90deg, #205ed4 0%, #1d50a6 100%); }

.arrow { font-size: 1.14em; margin-left: 12px; }

.login-link { margin-top: 22px; text-align: left; font-size: 1.09rem; color: #aaa; }

.login-link a { color: #156eff; text-decoration: none; font-weight: 500; }

/* ---------- Password checklist ---------- */
.rules { margin-left: 40px; }

.password-group { position: relative; display: flex; flex-direction: column; gap: 6px; }

.password-wrapper { display: flex; align-items: center; gap: 8px; position: relative; }

.password-requirements {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; font-size: 0.85rem; padding: 4px 0;
}

.password-requirements .requirement {
  display: flex; align-items: center; gap: 6px; padding: 4px 8px;
  border-radius: 6px; background: rgba(0,0,0,0.03); font-size: 0.8rem;
}

.password-requirements .icon { width: 16px; display: inline-block; font-weight: bold; }

.password-requirements .valid .icon { color: green; }
.password-requirements .invalid .icon { color: red; }

.password-requirements .valid .text { color: #1f7e1f; }
.password-requirements .invalid .text { color: #a00; }

/* --- Account type radio group --- */
.account-type-bar { margin-bottom: 1rem; }

.account-type {
  display: flex; align-items: center; gap: 1rem; border: none; padding: 0; margin: 0;
}

.account-type legend { font-weight: 600; margin-right: .5rem; }

.account-type .radio {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; user-select: none;
}

/* customer/admin field toggling */
.hidden { display: none !important; }

.customer-fields,
.admin-fields { display: contents; }

.with-label label { display: block; font-size: 0.9rem; margin-bottom: .35rem; color: #6b7280; }

.req { color: #ef4444; font-weight: 600; }

/* ---------- Responsive for wrapper only ---------- */
@media (max-width: 700px) {
  .register-wrapper { max-width: 99vw; padding: 18px 6vw 18px 6vw; }
}

/* ---------- Small screens (phones / small tablets) ---------- */
@media (max-width: 768px) {
  body {
    display: flex; align-items: center; justify-content: center;
    height: 100vh; padding: 20px 12px;
  }

  .container {
    width: 100%; max-width: 420px; min-height: auto;
    flex-direction: column; margin: 0 auto;
  }

  /* hide left gradient panel on small devices (even with AOS classes) */
  .panel.gradient,
  .panel.gradient.aos-init,
  .panel.gradient.aos-animate {
    display: none !important; visibility: hidden !important; opacity: 0 !important;
    width: 0 !important; padding: 0 !important; margin: 0 !important;
  }

  .panel { width: 100%; margin: 0; padding: 20px 16px; }

  .form { width: 100%; max-width: 100%; }

  .btn { width: 100%; }

  /* show mobile login link under submit */
  .mobile-login-link { display: block; }
}
