/* ---------- 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: 1000px; 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%; margin: 0 auto; display: flex; align-items: center; justify-content: center; }

.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: 50%; min-width: 300px; max-width: 500px; margin: 0 auto; }

/* Center the logo */
.form .logo { display: block; margin: 0 auto 20px; height: 180px; width: 170px; }

.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; }

/* focus state */
.input-group input:focus,
.input-group select:focus { border-color: #350e78; }

/* ---------- CHECKBOX (first basic) ---------- */
.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 register link under forgot */
.mobile-register-link {
  display: none; font-size: 0.9rem; text-align: center; margin-top: 8px;
}

.mobile-register-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 ---------- */
.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; }

.register-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 15px; margin-bottom: 16px; }

.form-group label { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #181818; display: block; }

.form-group input,
.form-group select {
  width: 100%; padding: 10px 10px; border: 1.5px solid #e4e4e4; border-radius: 12px;
  font-size: 13px; background: #f7fbff; margin-top: 6px; transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus { border-color: #236cff; outline: none; }

.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;
}

.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; }

@media (max-width: 700px) {
  .register-wrapper { max-width: 99vw; padding: 18px 6vw 18px 6vw; }
  .register-grid { grid-template-columns: 1fr; gap: 18px 0; }
}

/* Style SweetAlert2 for your brand */
.swal2-popup {
  border-radius: 24px !important; background-color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.swal2-title { color: #6b1da6 !important; font-weight: bold; }

.swal2-success { color: #f70505 !important; }

.swal2-styled.swal2-confirm { background-color: #6b1da6; }

body.swal2-shown { overflow: hidden !important; }

/* ─── Checkbox‐group container (custom) ─── */
.checkbox-group {
  display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; user-select: none;
}

/* ─── Hide native checkbox, draw our own ─── */
.checkbox-group input[type="checkbox"] {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border: 2px solid #ccc;
  border-radius: 4px; position: relative; cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

/* ─── Check state styling ─── */
.checkbox-group input[type="checkbox"]:checked {
  background-color: #6b1da6; border-color: #6b1da6;
}

/* ─── Checkmark ─── */
.checkbox-group input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 0px; width: 5px; height: 10px;
  border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ─── Label styling ─── */
.checkbox-group label {
  cursor: pointer; color: #333; font-size: 0.9rem; line-height: 1;
}

/* ---------- RESPONSIVE ---------- */

/* Small screens (phones / small tablets) */
@media (max-width: 768px) {
  /* use flex here so the card is vertically centered too */
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px 12px;
  }

  .container {
    width: 100%; max-width: 420px; height: auto;
    flex-direction: column;
    margin: 0 auto;
  }

  /* hide right 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%; min-width: 0; max-width: 100%;
  }

  .btn { width: 100%; }

  /* show mobile register link */
  .mobile-register-link { display: block; }
}
