:root {
  --pink: #e2537f;
  --pink-dark: #cf406c;
  --green: #4bae7b;
  --green-border: #6bc79a;
  --teal: #7cc5cf;
  --navy: #2b2b3c;
  --muted: #6c7a89;
  --bg: #eef0f1;
  --input-border: #d9dee3;
  --card-bg: #ffffff;
  --font: "Mulish", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Form controls don't inherit font-family/size by default — force them to
   use Mulish too, otherwise inputs and buttons fall back to the UA font. */
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.login_section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- Header ---------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 48px;
}

.tablet_logo_size { display: block; max-width: 100%; height: auto; }

.multi_language { position: relative; }

.multi_language_btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  padding: 6px 8px;
}

.flag_icon { width: 22px; height: 22px; border-radius: 3px; object-fit: cover; display: block; }
.lang-caret { font-size: 11px; color: var(--muted); }

.multi_language_menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 6px;
  min-width: 170px;
  z-index: 20;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
}
.dropdown-item:hover { background: #f4f6f8; }
.dropdown-item.active { font-weight: 700; }

/* ---------------- Layout grid ---------------- */
.login_padding {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 20px 48px 60px;
}

.login_grid {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.login_col_left { max-width: 560px; }

/* ---------------- Typography ----------------
   Sizes/weights follow the real MUI login: bold (700) headings in Mulish,
   16px body/inputs. Mulish 800 read too heavy against the live site. */
.h2s-h2 { font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -0.2px; margin: 0 0 8px; color: var(--navy); }
.h2s-h6 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--navy); }
.h2s-h4 { font-size: 26px; font-weight: 700; line-height: 1.35; margin: 0 0 26px; color: var(--navy); }
.h2s-body { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.heading { margin-bottom: 26px; }

/* ---------------- Form ---------------- */
.login_form_div { margin-bottom: 34px; }

.custom_form_group { position: relative; margin-bottom: 18px; }

.label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--navy);
}

.custom_form_control {
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-size: 16px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.custom_form_control::placeholder { color: #aab4bf; }
.custom_form_control:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(124, 197, 207, 0.25);
}

.input_icon {
  position: absolute;
  right: 16px;
  bottom: 15px;
  color: #9aa6b2;
  font-size: 16px;
}
.eye_position { right: 16px; cursor: pointer; }
.icon_position_media.eye_position { right: 16px; }
/* when both lock + eye exist, push lock left of eye */
.custom_form_group .input_icon.icon_position_media:not(.eye_position) { right: 44px; }

/* ---------------- Cloudflare Turnstile (visual only) ---------------- */
.turnstile-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 300px;
  max-width: 100%;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 12px;
  margin: 20px 0 22px;
}
.turnstile-left { display: flex; align-items: center; gap: 10px; }
.turnstile-check { color: #2fb344; font-size: 22px; }
.turnstile-text { font-size: 14px; color: #333; }
.turnstile-right { text-align: right; line-height: 1.2; }
.turnstile-cf { display: block; font-size: 9px; font-weight: 700; color: #f38020; letter-spacing: 0.5px; }
.turnstile-links { font-size: 9px; color: #999; }

/* ---------------- Remember me / forgot ---------------- */
.desktop_remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.checkbox_container {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  padding-left: 0;
}
.checkbox_container input { position: absolute; opacity: 0; height: 0; width: 0; }
.checkmark {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background: #fff;
  border: 1.5px solid #c3ccd5;
  border-radius: 4px;
}
.checkbox_container input:checked ~ .checkmark { background: var(--green); border-color: var(--green); }
.checkbox_container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.forgotPswd_btn {
  background: transparent;
  border: none;
  color: var(--pink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.forgotPswd_btn:hover { text-decoration: underline; }

/* ---------------- Buttons ---------------- */
.login_btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.login_btn:hover { background: var(--pink-dark); }
.login_btn:disabled { opacity: 0.75; cursor: default; }

/* ---------------- Register block ---------------- */
.register_div { border-top: 1px solid #e2e6ea; padding-top: 26px; }
.register_div .h2s-body { margin-bottom: 16px; }

.desktop_registerBtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.desktop_registerBtn i { font-size: 20px; }
.desktop_registerBtn:hover { color: #3c9668; }

/* ---------------- Right quick-access card ---------------- */
.login_col_right { display: flex; justify-content: center; }

.quick_card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1.5px solid var(--green-border);
  border-radius: 18px;
  padding: 54px 40px 34px;
  text-align: center;
}

.quick_card .item { display: flex; flex-direction: column; align-items: center; }

.login_signUp_btn {
  padding: 12px 42px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: var(--pink);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.login_signUp_btn:hover { background: var(--pink-dark); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #cde6d8; }
.dot.active { background: var(--green); }

/* ---------------- Cookie banner ---------------- */
.message.cookie {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #2f2e3d;
  color: #fff;
  padding: 22px 32px;
  z-index: 1000;
}
.message.cookie .content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.message.cookie p { margin: 0; font-size: 14px; line-height: 1.5; }
.message.cookie a { color: #fff; text-decoration: underline; }
.accept_cookies { display: flex; gap: 14px; flex-shrink: 0; }
.accept_btn {
  background: var(--pink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.accept_btn:hover { background: var(--pink-dark); }
#btn-cookie-deny { background: #4a4958; }
#btn-cookie-deny:hover { background: #5a5869; }

/* ---------------- Educational reveal ---------------- */
.reveal_section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  min-height: 80vh;
}
.reveal_card {
  width: 100%;
  max-width: 620px;
  background: #fff;
  border: 1px solid var(--input-border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 30, 45, 0.12);
  padding: 40px 40px 34px;
}
.reveal_badge {
  display: inline-block;
  background: #fdeef3;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.reveal_lead { margin: 10px 0 0; }
.reveal_box {
  background: #f6f9fc;
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 20px 22px;
  margin: 24px 0 6px;
}
.reveal_box h3 { font-size: 16px; margin: 0 0 12px; color: var(--navy); }
.reveal_box ul { margin: 0; padding-left: 20px; }
.reveal_box li { font-size: 14px; line-height: 1.65; color: #33475b; margin-bottom: 9px; }
.reveal_box code { background: #eef2f6; padding: 1px 6px; border-radius: 4px; font-size: 13px; }
.reveal_foot { margin-top: 18px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .login_grid { grid-template-columns: 1fr; gap: 40px; }
  .login_col_left { max-width: 100%; }
  .header { padding: 18px 20px; }
  .login_padding { padding: 16px 20px 80px; }
  .tablet_logo_size { width: 190px !important; height: auto !important; }
  .message.cookie .content { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .h2s-h2 { font-size: 27px; }
  .h2s-h4 { font-size: 22px; }
  .quick_card { padding: 40px 24px 28px; }
  .reveal_card { padding: 28px 22px; }
}
