/* --------------------------------------------- */
/* ************* SIGN_IN & SIGN_UP ************* */
/* --------------------------------------------- */

/* ── ERROR MODAL ── */
.auth-error-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-error-modal--show {
  opacity: 1;
}

.auth-error-modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  padding: 40px 36px 32px;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s ease;
}

.auth-error-modal--show .auth-error-modal-box {
  transform: translateY(0) scale(1);
}

.auth-error-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff1f1;
  color: #e74c3c;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.auth-error-modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e1e1e;
  margin: 0;
}

.auth-error-modal-box p {
  font-size: 14px;
  font-weight: 500;
  color: #444;
  line-height: 1.6;
  margin: 0 0 8px;
}

.auth-error-modal-close {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

/* AUTH ERROR MODAL */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.auth-modal-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.2s ease;
}

@keyframes modalPop {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.auth-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.auth-modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.auth-modal-message {
  font-size: 14px;
  color: #555;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-modal-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-modal-btn:hover {
  background: var(--primary-dark);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  min-height: 100vh;
  background: linear-gradient(
    -20deg,
    var(--primary),
    var(--primary-dark),
    var(--primary),
    var(--primary-dark)
  );
  background-size: 400% 400%;
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* NAVBAR */
.header {
  width: 100%;
  padding: 12px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.2s ease;
}

.nav-links a p {
  color: #ffffff;
  font-size: 15px;
  margin: 0;
  transition: color 0.2s ease;
}

.nav-links a:hover p {
  color: var(--accent);
}

/* DROPDOWN */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  color: #ffffff;
  font-size: 15px;
  padding: 8px 16px;
  cursor: pointer;
  user-select: none;
  margin: 0;
  transition: color 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--accent);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: var(--radius);
  min-width: 150px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 64, 166, 0.06);
  color: var(--primary);
}

/* NAV RIGHT */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* GET STARTED BUTTON */
.get-started-btn {
  text-decoration: none;
  background-color: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.get-started-btn:hover {
  opacity: 0.85;
}

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: -100%;
  width: 75%;
  max-width: 300px;
  height: 100vh;
  background: var(--primary-dark);
  z-index: 999;
  padding: 80px 28px 40px;
  gap: 4px;
  transition: right 0.3s ease;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-dropdown-trigger {
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  transition: color 0.2s ease;
}

.mobile-dropdown-trigger.open {
  color: var(--accent);
}

.mobile-dropdown-items {
  display: none;
  flex-direction: column;
  padding-left: 16px;
}

.mobile-dropdown-items.open {
  display: flex;
}

.mobile-dropdown-items a {
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-get-started {
  margin-top: 16px;
  background: var(--accent) !important;
  color: var(--accent-text) !important;
  text-align: center;
  padding: 12px 0 !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  border-bottom: none !important;
}

/* OVERLAY */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-overlay.open {
  display: block;
}

/* MAIN CONTENT */
.main-container {
  width: 100%;
  padding: 50px 20px;
  display: flex;
  justify-content: center;
}

.main-card {
  width: 60%;
  height: fit-content;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.61),
    rgba(138, 140, 202, 0.61)
  );
  border-radius: var(--radius);
  display: flex;
  padding: 40px 0;
}

/* LEFT */
.main-card .left {
  width: 50%;
  height: auto;
  padding: 20px 80px;
  border-right: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
}

.left-content-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: auto;
  gap: 40px;
}

.left-content-container a {
  text-decoration: none;
  color: var(--primary);
  display: flex;
  gap: 14px;
  width: fit-content;
  height: auto;
  align-items: center;
}

.left-content-container .header-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-content-container .header-wrapper p {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
  max-width: 160px;
}

.left-content-container .header-wrapper span {
  font-size: 14px;
  opacity: 0.8;
}

/* TAGLINE */
.left-tagline-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  color: white;
}

.left-tagline-container .tagline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.left-tagline-container p {
  font-size: 48px;
  font-weight: 900;
}

.left-tagline-container .tagline span {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
}

.left-tagline-container span {
  font-weight: 600;
}

.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.steps-container .step .step-number {
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
}

/* RIGHT */
.main-card .right {
  width: 50%;
  height: auto;
  padding: 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.right .auth-header-container {
  display: flex;
  flex-direction: column;
}

.auth-header-container h2 {
  font-size: 36px;
  color: var(--primary);
  font-weight: 600;
  line-height: 1;
}

.auth-header-container span {
  font-size: 16px;
  color: #3d3d3d;
  opacity: 60%;
  font-weight: 700;
}

.right .switch-auth-toggle {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 4px;
}

.switch-auth-toggle .toggle-btn {
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #656070;
  font-weight: 600;
  border-radius: var(--radius);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.switch-auth-toggle .toggle-btn:hover {
  cursor: pointer;
}

.switch-auth-toggle .active {
  background: var(--primary);
  color: white;
}

.form-container {
  display: flex;
  flex-direction: column;
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.input-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.input-field label {
  color: #f2f4f5;
  font-size: 14px;
  font-weight: 600;
  margin-left: 6px;
}

.input-field input,
select {
  width: 100%;
  height: 45px;
  border: 1px solid #d9d9d9;
  background: rgba(255, 255, 255, 0.6);
  opacity: 60%;
  border-radius: var(--radius);
  padding: 0 16px;
  color: #000;
  font-weight: 700;
}

.input-field input::placeholder {
  color: #797777;
  opacity: 60%;
}

.input-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.8);
  opacity: 80%;
}

.input-field select:hover {
  cursor: pointer;
}

.input-field select {
  color: #9b9999;
}

.input-field select:valid {
  color: #000;
}

.two-input-fields {
  display: flex;
  width: 100%;
  gap: 8px;
}

.forgot-pass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.forgot-pass a {
  color: #f2f4f5;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: auto;
}

.submit-btn {
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  margin-top: 20px;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background: var(--primary-dark);
  cursor: pointer;
}

.switch-to-sign-up {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #f2f4f5;
  font-weight: 500;
  margin-top: 20px;
}

.switch-to-sign-up a {
  color: #f2f4f5;
  text-decoration: underline;
}

.note-container {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  border: 1px solid rgba(from var(--primary) r g b / 0.4);
  background-color: rgba(from var(--primary) r g b / 0.2);
  border-radius: var(--radius);
  padding: 6px 12px;
}

.note-container span {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
}

.note-container p {
  font-size: 12px;
  color: #000000;
  font-weight: 700;
  opacity: 30%;
}

/* SUCCESS */
.success-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px;
}

.applicant-id-box {
  width: 100%;
  padding: 14px 14px 30px 14px;
  background-color: rgba(from var(--primary) r g b / 0.2);
  border-radius: var(--radius);
  border: 1px solid rgba(from var(--primary) r g b / 0.4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.applicant-id-box span {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.applicant-id-box p {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
}

.go-back-link-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  background: var(--primary);
  color: white;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  margin-top: 20px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.go-back-link-btn:hover {
  background: var(--primary-dark);
  cursor: pointer;
}

.success-info span {
  font-size: 16px;
  color: #3d3d3d;
  font-weight: 700;
}

/* TURNSTILE */
.cf-turnstile {
  width: 100% !important;
  margin-top: 16px;
}

.cf-turnstile iframe {
  width: 100% !important;
  border-radius: var(--radius);
}

/* TURNSTILE MODAL */
.turnstile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.turnstile-modal-box {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.turnstile-modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.turnstile-modal-header p {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.turnstile-modal-header span {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.turnstile-cancel-btn {
  width: 100%;
  height: 40px;
  background: transparent;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.turnstile-cancel-btn:hover {
  background: #f5f5f5;
}

/* show/hide password */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 52px;
}

.toggle-password-btn {
  position: absolute;
  right: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 24px;

  border: none;
  background: transparent;

  cursor: pointer;

  color: #3f3f46;
  opacity: 0.75;

  transition: opacity 0.2s ease;
}

.toggle-password-btn:hover {
  opacity: 1;
}

.toggle-password-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================= */
/* ************** RESPONSIVE ****************** */
/* ============================================= */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .header {
    padding: 12px 24px;
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-card {
    width: 85%;
  }

  .main-card .left {
    padding: 20px 40px;
  }

  .main-card .right {
    padding: 20px 40px;
  }

  .left-tagline-container p {
    font-size: 36px;
  }

  .left-tagline-container .tagline span {
    font-size: 36px;
  }
}

/* Small tablet — 768px */
@media (max-width: 768px) {
  .header {
    padding: 12px 20px;
  }

  .brand-name {
    display: none;
  }

  .main-container {
    padding: 20px 16px;
  }

  .main-card {
    width: 100%;
    flex-direction: column;
    padding: 24px 0;
  }

  .main-card .left {
    width: 100%;
    padding: 20px 28px;
    border-right: none;
    border-bottom: 1px solid #d9d9d9;
  }

  .main-card .right {
    width: 100%;
    padding: 20px 28px;
  }

  .left-tagline-container {
    gap: 20px;
  }

  .left-tagline-container p {
    font-size: 28px;
  }

  .left-tagline-container .tagline span {
    font-size: 28px;
  }

  .auth-header-container h2 {
    font-size: 28px;
  }
}

/* Mobile — 480px */
@media (max-width: 480px) {
  .header {
    padding: 10px 16px;
  }

  .get-started-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .main-container {
    padding: 16px 12px;
  }

  .main-card .left {
    padding: 16px 20px;
  }

  .main-card .left .left-tagline-container {
    display: none;
  }

  .main-card .right {
    padding: 16px 20px;
  }

  .auth-header-container h2 {
    font-size: 24px;
  }

  .auth-header-container span {
    font-size: 13px;
  }

  .switch-auth-toggle .toggle-btn {
    font-size: 14px;
  }

  .input-field input,
  select {
    height: 40px;
    font-size: 14px;
  }

  .submit-btn {
    height: 44px;
    font-size: 14px;
  }

  .two-input-fields {
    flex-direction: column;
    gap: 14px;
  }

  .applicant-id-box p {
    font-size: 20px;
  }

  .success-info span {
    font-size: 16px;
    color: var(--text-primary);
    opacity: 60%;
    font-weight: 700;
    line-height: 1.5;
  }

  .go-back-link-btn {
    height: 44px;
    font-size: 14px;
  }

  .turnstile-modal-box {
    width: 90%;
    padding: 24px 20px;
  }
}
