/* ========== TOKENS ========== */
:root {
  --bg-color: #fffffe;
  --light-teal: #edf4f4;
  --dark-shade-1: #2d3a48;
  --dark-shade-2: #728192;
  --dark-shade-3: #b3c0cf;
  --dark-shade-4: #cfd9e2;
  --primary-teal: #069ba2;
  --success-bg: #d4edda;
  --success-text: #155724;
  --error-bg: #f9efef;
  --error-text: #f54747;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Inter", sans-serif; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  background-color: var(--bg-color);
  font-size: 16px;
  color: var(--dark-shade-1);
}

/* ========== LAYOUT ========== */
.wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "form form";
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.left-side-container {
  grid-area: form;
  padding-inline: 4.5rem;
  padding-block: 3rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.left-side-container::-webkit-scrollbar { display: none; }

.right-side-container {
  grid-area: empty;
  background-color: var(--light-teal);
  position: relative;
  padding: clamp(0.25rem, 1vh, 1rem) clamp(0.75rem, 2.5vw, 2rem);
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: clamp(0.25rem, 1.5vh, 1.75rem);
  display: none;
  max-height: 100vh;
  overflow: hidden;
}

@media screen and (min-width: 900px) {
  .wrapper {
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "form form empty";
  }
  .right-side-container { display: flex; }
}

@media screen and (min-width: 1280px) {
  .left-side-container { padding-block: 5rem; padding-inline: 6.5rem; }
}

/* ========== LOGO ========== */
.text-logo {
  display: inline-block;
  text-decoration: none;
  color: var(--dark-shade-1);
}
.text-logo img { display: block; height: 36px; width: auto; }

/* ========== TYPOGRAPHY HELPERS ========== */
.subtitle {
  font-size: 1.25rem;
  color: var(--dark-shade-1);
  font-weight: 500;
  line-height: 24px;
}
.body {
  font-size: 0.75rem;
  color: var(--dark-shade-1);
  line-height: 15px;
  font-weight: 400;
  display: block;
}
.label {
  font-size: 0.9rem;
  color: var(--dark-shade-1);
  line-height: 17px;
  font-weight: 400;
}

a { color: var(--primary-teal); }

.mt-xsmall { margin-block-start: 0.5rem; }
.mt-small { margin-block-start: 1.5rem; }
.mt-1 { margin-block-start: 1rem; }
.mt-10 { margin-block-start: 2.5rem; }
.mt-large { margin-block-start: 5rem; }

.max-w { max-width: 500px; }
.min-w-flex { flex: 2; }
.form-row { display: flex; align-items: center; }
.invisible { display: none !important; }
.hide { display: none; }

/* ========== INPUTS ========== */
input, select {
  width: 100%;
  padding: 0.5rem !important;
  border-radius: 0.25rem !important;
  border: 1px solid var(--dark-shade-4) !important;
  margin: 0 !important;
  height: auto !important;
  font-size: 0.8rem !important;
  background-color: #fff;
  color: var(--dark-shade-1);
}

input[type="text"], input[type="email"], input[type="password"], input[type="tel"] {
  font-size: 16px;
  outline: none;
}

input::placeholder { color: var(--dark-shade-2); }

input:focus, select:focus { outline: 1px solid var(--primary-teal); border-color: var(--primary-teal) !important; }

/* Inline error state khi JS reject email (invalid / 400 / 409) — viền đỏ +
   nền hồng nhạt + halo, match style của field-error pattern bên meeting.css. */
input.input-error,
.input-with-icon.input-error {
  border-color: var(--error-text) !important;
  background-color: var(--error-bg) !important;
  box-shadow: 0 0 0 3px rgba(245, 71, 71, 0.12);
}
.field-error {
  display: block;
  margin-top: 6px;
  color: var(--error-text);
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 500;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23728192' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem !important;
}

/* ========== CHECKBOX ========== */
.pure-checkbox input[type="checkbox"] {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.pure-checkbox label {
  position: relative;
  padding: 5px 5px 5px 2em;
  cursor: pointer;
  display: inline-block;
  line-height: normal;
}
.pure-checkbox label:before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 14px; height: 14px;
  border: 2px solid var(--primary-teal);
  border-radius: 0.25rem;
  background-color: #fff;
  transition: all 0.2s ease;
}
.pure-checkbox label:after {
  content: "";
  position: absolute;
  left: 4px; top: 9px;
  width: 8px; height: 3px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: transform 200ms ease-out;
}
.pure-checkbox input[type="checkbox"]:checked + label:before {
  background-color: var(--primary-teal);
}
.pure-checkbox input[type="checkbox"]:checked + label:after {
  transform: rotate(-45deg) scale(1);
}

/* ========== RADIO ========== */
.pure-radiobutton input[type="radio"] {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.pure-radiobutton label {
  position: relative;
  padding-left: 1.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  display: inline-block;
}
.pure-radiobutton label:before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid var(--primary-teal);
  border-radius: 50%;
  background: #fff;
}
.pure-radiobutton label:after {
  content: "";
  position: absolute;
  left: 4px; top: 50%;
  transform: translateY(-50%) scale(0);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary-teal);
  transition: transform 200ms ease-out;
}
.pure-radiobutton input[type="radio"]:checked + label:after {
  transform: translateY(-50%) scale(1);
}

/* ========== BUTTONS ========== */
.button {
  border-radius: 0.25rem;
  padding-inline: 1rem;
  padding-block: 0.75rem;
  background-color: var(--primary-teal);
  color: var(--light-teal);
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.button:hover:not(:disabled) { opacity: 0.9; }
.button:disabled {
  background-color: var(--dark-shade-4);
  cursor: not-allowed;
}

/* ========== INPUT WITH ICON (PASSWORD) ========== */
.input-with-icon {
  position: relative;
  border: 1px solid var(--dark-shade-4);
  border-radius: 0.25rem;
  padding: 0.5rem;
  display: flex;
  width: 100%;
}
.input-with-icon input {
  border: none !important;
  outline: none !important;
  flex-grow: 1;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent;
}
.input-with-icon .icon {
  flex-shrink: 0;
  cursor: pointer;
  width: 1.25rem;
  height: 1.25rem;
}

.password-policy {
  display: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(110%, -8%);
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--bg-color);
  box-shadow: 0px 0px 11px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0.5rem;
  z-index: 10;
}
.password-policy::before {
  content: "";
  position: absolute;
  width: 1rem; height: 1rem;
  top: 1rem; left: 0;
  transform: translateX(-50%) rotateZ(45deg);
  background-color: inherit;
}
.password-policy span { font-size: 10px; line-height: 18px; color: var(--dark-shade-1); margin-left: 4px; }
.password-policy .fa { color: var(--dark-shade-3); font-size: 10px; }
input[type="password"]:focus ~ .password-policy { display: flex; }
.input-with-icon:focus-within .password-policy { display: flex; }

/* ========== LOGIN METHODS ========== */
#loginMethodsContainer {
  display: flex;
  width: 100%;
  gap: 30px;
}
#loginMethodsContainer #seperator {
  width: 40px;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}
#loginMethodsContainer #seperator hr { display: none; flex: 1; border: none; border-top: 1px solid var(--dark-shade-4); }
#loginMethodsContainer #seperator .vl {
  flex: 1;
  border-left: 1px solid var(--dark-shade-4);
}

#loginMethodsContainer #otherLoginOptions {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
}
#loginMethodsContainer #otherLoginOptions a {
  border-radius: 0.25rem;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.9rem;
  width: 100%;
  height: 34px;
  border: 1px solid #ccc;
  color: #5e5e5e;
  text-decoration: none;
  padding: 0 1rem;
}
#loginMethodsContainer #otherLoginOptions a:hover { background: #f9f9f9; }

@media screen and (max-width: 1280px) {
  #loginMethodsContainer { flex-direction: column; gap: 1rem; align-items: stretch; }
  #loginMethodsContainer #seperator { flex-direction: row; width: 100%; gap: 15px; padding: 0; }
  #loginMethodsContainer #seperator hr { display: block; }
  #loginMethodsContainer #seperator .vl { display: none; }
  #loginMethodsContainer #otherLoginOptions { max-width: 500px !important; width: 100%; }
}

@media screen and (max-width: 1366px) {
  #loginMethodsContainer #otherLoginOptions a {
    gap: 7px;
    font-size: 0.8rem;
  }
  #loginMethodsContainer #otherLoginOptions a img { height: 15px; width: auto; }
}

/* ========== FOOTER ========== */
.footer { margin-block-start: auto; padding-top: 2rem; }
.footer > * { display: flex; align-items: baseline; gap: 0.25rem; flex-wrap: wrap; }
.footer .body { color: var(--dark-shade-2); }
.footer .body a { color: inherit; text-decoration: none; }
.footer .body a:hover { text-decoration: underline; }

/* ========== RIGHT SIDE (testimonials/awards) ========== */
.right-side-container .subtitle { font-size: clamp(0.875rem, 1.9vh, 1.25rem); line-height: 1.25; }
.right-side-container .label { font-size: clamp(0.75rem, 1.5vh, 0.95rem); line-height: 1.2; }
.right-side-container .body { font-size: clamp(0.65rem, 1.25vh, 0.85rem); line-height: 1.3; }

@media screen and (max-height: 800px) {
  .industry-logos { scale: 0.8; }
  .right-side-container { padding: 1rem 2rem; }
}

/* ========== AWARDS ========== */
.awards-list {
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.7vh, 6px);
  width: 100%;
  max-width: 286px;
  margin: 0 auto;
  flex: 0 1 auto;
  min-height: 0;
}
.award-badge {
  position: relative;
  border-radius: 8px;
  padding: clamp(9px, 1.6vh, 16px) clamp(10px, 2vw, 16px);
  color: #fff;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: clamp(72px, 11vh, 116px);
  display: flex;
  flex-direction: column;
}
.award-badge::before, .award-badge::after {
  content: "";
  position: absolute;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1.4px);
  background-size: 5px 5px;
  pointer-events: none;
}
.award-badge::before {
  top: 0; right: 0; width: 55%; height: 60%;
  -webkit-mask-image: radial-gradient(ellipse farthest-side at 100% 0%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse farthest-side at 100% 0%, #000 0%, transparent 100%);
}
.award-badge::after {
  bottom: 0; left: 0; width: 55%; height: 60%;
  -webkit-mask-image: radial-gradient(ellipse farthest-side at 0% 100%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse farthest-side at 0% 100%, #000 0%, transparent 100%);
}
.award-badge > * { position: relative; z-index: 1; }
.award-badge-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.award-logo-img { display: block; height: clamp(22px, 4.8vh, 46px); width: auto; max-width: 75%; object-fit: contain; }
.award-trophy { width: clamp(16px, 3vh, 28px); height: clamp(16px, 3vh, 28px); flex-shrink: 0; }
.award-line { display: block; width: 100%; height: 1px; margin: clamp(3px, 0.7vh, 10px) 0 clamp(2px, 0.5vh, 6px); }
.award-years {
  display: flex; align-items: center;
  gap: clamp(4px, 0.8vh, 6px);
  row-gap: 4px; flex-wrap: wrap;
  color: #fff;
  font-size: clamp(10px, 1.6vh, 12px);
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-top: auto;
}
.award-years > span { white-space: nowrap; }
.award-years img { height: 8px; width: 1px; }

/* ========== INDUSTRY LOGOS ========== */
.logos-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--light-teal);
  flex-wrap: nowrap;
  width: 100%;
}
.logos-container > div {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 25%;
}
.logos-container img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: 26px;
  height: auto;
  object-fit: contain;
}
@media screen and (max-width: 1200px) {
  .logos-container img { max-height: 22px; }
}

/* ========== ANIMATIONS ========== */
.fade-in {
  will-change: transform, opacity;
  animation: fadingin 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}
.fade-in-left {
  will-change: transform, opacity;
  animation: fadinginleft 0.3s cubic-bezier(0.075, 0.82, 0.165, 1) forwards;
}
@keyframes fadinginleft {
  0%   { opacity: 0; transform: translateX(-20%); }
  100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadingin {
  0%   { opacity: 0; transform: translateX(20%); }
  100% { opacity: 1; transform: translateX(0); }
}

/* ========== STEP TRANSITIONS ========== */
.first-step, .second-step { opacity: 1; }
.first-step.invisible, .second-step.invisible { display: none; }

/* ========== MOBILE TWEAKS ========== */
@media screen and (max-width: 900px) {
  .left-side-container { padding-inline: 1.5rem; padding-block: 2rem; }
  .mt-large { margin-block-start: 2.5rem; }
}
@media screen and (max-width: 480px) {
  .left-side-container { padding-inline: 1rem; padding-block: 1.5rem; }
  .subtitle { font-size: 1.05rem; }
}
