/* TOKENS */
:root {
  --primary: #5b3df5;
  --primary-hover: #4a2fe0;
  --primary-light: #eee9ff;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-secondary: #f1f3f9;
  --border: #e6e8f0;
  --heading: #111827;
  --text: #475467;
  --muted: #98a2b3;
  --success: #18b56a;
  --warning: #f6b91a;
  --danger: #e5484d;
  --whatsapp: #25d366;
  --navy: #16213e;
  --navy-2: #1f2948;
  --blue: var(--primary);
  --blue-light: var(--primary-light);
  --yellow: var(--warning);
  --yellow-deep: var(--warning);
  --cream: var(--bg);
  --ink: var(--heading);
  --slate: var(--text);
  --line: var(--border);
  --white: var(--surface);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-dropdown: 0 16px 40px rgba(17, 24, 39, 0.08);
}

/* RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--heading);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  font-family: inherit;
}

/* LAYOUT */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/*PHONE MOCK */
.phone-mock {
  position: relative;
  width: 240px;
  height: 486px;
  background: var(--navy);
  border-radius: 34px;
  padding: 10px;
  margin: 0 auto;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  animation: pm-float 6s ease-in-out infinite;
  flex-shrink: 0;
}

.phone-mock-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 18px;
  background: #0d1424;
  border-radius: 0 0 12px 12px;
  z-index: 5;
}

.phone-mock-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pm-banner {
  height: 88px;
  background: linear-gradient(120deg, var(--primary), var(--primary-hover));
  padding: 34px 14px 0;
  flex-shrink: 0;
}

.pm-store {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.pm-store-name {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.pm-store-sub {
  color: rgba(255, 255, 255, 0.75);
  font-size: 8.5px;
}

.pm-cats {
  display: flex;
  gap: 6px;
  padding: 10px 12px 6px;
}

.pm-cat {
  font-size: 8px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 100px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  white-space: nowrap;
}

.pm-cat.active {
  background: var(--navy);
  color: var(--surface);
  border-color: var(--navy);
}

.pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 12px 12px;
  flex: 1;
}

.pm-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 7px;
  border: 1px solid var(--border);
}

.pm-thumb {
  width: 100%;
  height: 46px;
  border-radius: 8px;
  margin-bottom: 6px;
}

.pm-thumb-1 {
  background: linear-gradient(135deg, #f8e9ff, var(--primary-light));
}
.pm-thumb-2 {
  background: linear-gradient(135deg, #f2efff, var(--primary));
}
.pm-thumb-3 {
  background: linear-gradient(135deg, #fef8e8, var(--warning));
}
.pm-thumb-4 {
  background: linear-gradient(135deg, #eef2ff, var(--navy));
}

.pm-name {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 2px;
}
.pm-price {
  font-size: 8px;
  font-weight: 800;
  color: var(--navy);
}

.pm-cart-btn {
  margin-top: 6px;
  width: 100%;
  padding: 5px 0;
  background: var(--navy);
  color: var(--surface);
  font-size: 7px;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
}

.pm-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.35);
  z-index: 4;
}

.pm-float-1 {
  top: 6%;
  left: -12%;
  animation: pm-float-a 5.5s ease-in-out infinite;
}
.pm-float-2 {
  top: 40%;
  right: -18%;
  animation: pm-float-b 6.5s ease-in-out infinite 0.4s;
}
.pm-float-3 {
  bottom: 8%;
  left: -14%;
  animation: pm-float-a 6s ease-in-out infinite 1.1s;
}

@keyframes pm-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes pm-float-a {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(3px);
  }
}
@keyframes pm-float-b {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mock,
  .pm-float {
    animation: none;
  }
}

/*LEFT PANEL */
.auth-left {
  flex: 1.08;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(76, 127, 209, 0.2) 0%,
      transparent 48%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 201, 60, 0.18) 0%,
      transparent 46%
    );
  pointer-events: none;
}

.auth-left-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}


/* LEFT CONTENT */
.auth-left-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 40px;
  max-width: 420px;
}

.auth-left-content h2 {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.auth-left-content > p {
  font-size: 16px;
  color: rgba(247, 245, 239, 0.78);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 360px;
}

/* TRUST LIST */
.trust-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

.trust-item:hover {
  border-color: rgba(255, 201, 60, 0.35);
  transform: translateY(-1px);
}

.trust-icon {
  font-size: 18px;
  width: 40px;
  height: 40px;
  background: rgba(255, 201, 60, 0.16);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-item div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.trust-item strong {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f7;
}
.trust-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

/* RIGHT PANEL */
.auth-right {
  flex: 0.92;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  background: var(--bg);
  overflow-y: auto;
}

/* AUTH BOX */
.auth-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 42px 38px;
  width: 100%;
  max-width: 430px;
  box-shadow: var(--shadow-card);
  animation: fadeUp 0.5s ease;
  position: relative;
  overflow: hidden;
}

.auth-box h1 {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 22px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin: 6px 0 8px;
}

.auth-box > p {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 28px;
}

/* LOGO */
.logo{
  display: flex;
  justify-content: center;
}
.logo img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* INPUT BOX */
.input-box {
  margin-bottom: 16px;
}

.input-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.input-box input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface-secondary);
  color: var(--heading);
  outline: none;
  transition: all 0.2s;
}

.input-box input::placeholder {
  color: var(--muted);
}
.input-box input:hover {
  border-color: var(--primary-light);
}
.input-box input:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(91, 61, 245, 0.12);
}
.input-box input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.1);
}

/* PASSWORD FIELD */
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 46px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
}

.toggle-password:hover {
  background: rgba(30, 75, 140, 0.08);
  color: var(--blue);
}

.toggle-password .eye-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toggle-password .eye-closed {
  display: none;
}
.toggle-password.is-visible .eye-open {
  display: none;
}
.toggle-password.is-visible .eye-closed {
  display: block;
}

/* CHECKBOX GROUP */
.checkbox-group {
  margin-bottom: 20px;
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--slate);
  line-height: 1.3;
  flex-wrap: wrap;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}

.checkbox-label:hover .checkbox-box {
  border-color: var(--blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box {
  background: var(--blue);
  border-color: var(--blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-box::after {
  content: "✓";
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* ERROR MESSAGES */
.error-msg {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 6px;
}

/* SUBMIT BUTTON */
.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  border: 2px solid transparent;
  color: var(--surface);
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(91, 61, 245, 0.22);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* DIVIDER */
.divider {
  text-align: center;
  color: var(--slate);
  font-size: 13px;
  position: relative;
  margin: 6px 0 12px;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--line);
}

.divider::before {
  left: 0;
}
.divider::after {
  right: 0;
}

/* SOCIAL BUTTON */
.btn-social {
  width: 100%;
    display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(30, 75, 140, 0.2);
  border-radius: 10px;
  background: var(--white);
  font-weight: 600;
  color: var(--blue);
  transition:
    background 0.2s,
    border-color 0.2s;
}

.btn-social:hover {
  background: rgba(255, 201, 60, 0.12);
  border-color: var(--blue-light);
}

.google-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* SWITCH LINK */
.switch-link {
  margin-top: 20px;
  font-size: 14px;
  color: var(--slate);
  text-align: center;
}
.switch-link span {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.switch-link span:hover {
  text-decoration: underline;
}

/* SUCCESS BANNER */
.success-banner {
  display: none;
  background: rgba(24, 181, 106, 0.12);
  color: var(--success);
  border: 1px solid rgba(24, 181, 106, 0.18);
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*RESPONSIVE */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
  .auth-left {
    padding: 32px 32px;
  }
  .auth-left-content h2 {
    font-size: 26px;
  }
  .auth-left-content {
    padding: 40px 0 32px;
  }
  .phone-mock {
    width: 200px;
    height: 405px;
  }
  .pm-float {
    font-size: 9.5px;
    padding: 6px 9px;
  }
}

/* Mobile (max 768px) — keep mock, stack vertically */
@media (max-width: 768px) {
  .auth-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  .auth-left {
    display: none;
  }

  /* Hide trust list on mobile — too long */
  .trust-list {
    display: none;
  }

  /* Hide left panel text on mobile — just show mock */
  .auth-left-content h2,
  .auth-left-content > p {
    display: none;
  }

  .auth-left-content {
    padding: 24px 0 0;
    display: flex;
    justify-content: center;
  }

  /* Phone mock smaller on mobile */
  .phone-mock {
    width: 170px;
    height: 345px;
    border-radius: 28px;
  }

  /* Float badges smaller */
  .pm-float {
    font-size: 9px;
    padding: 5px 8px;
    border-radius: 8px;
  }

  .pm-float-1 {
    left: -8%;
  }
  .pm-float-2 {
    right: -10%;
  }
  .pm-float-3 {
    left: -10%;
  }

  /* Right panel takes remaining space */
  .auth-right {
    flex: 1;
    padding: 28px 16px 40px;
    background: var(--cream);
    align-items: flex-start;
  }

  .auth-box {
    box-shadow: none;
    border: 1px solid var(--line);
    padding: 32px 20px;
  }

  .auth-box h1 {
    font-size: 22px;
  }
}

/* Small mobile (max 480px) */
@media (max-width: 480px) {
  .auth-left {
    padding: 20px 16px 32px;
  }

  .phone-mock {
    width: 150px;
    height: 304px;
    border-radius: 24px;
    padding: 8px;
  }

  .pm-float {
    font-size: 8px;
    padding: 4px 7px;
  }
  .pm-float-1 {
    left: -4%;
  }
  .pm-float-2 {
    right: -6%;
  }
  .pm-float-3 {
    left: -6%;
  }

  .auth-right {
    padding: 20px 12px 32px;
  }

  .auth-box {
    padding: 28px 16px;
    border-radius: var(--radius);
  }

  .auth-box h1 {
    font-size: 20px;
  }

  .input-box input,
  .btn-submit {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* Very small (max 360px) */
@media (max-width: 360px) {
  .phone-mock {
    width: 130px;
    height: 263px;
    border-radius: 20px;
  }

  .pm-float {
    display: none;
  }
}

/* TERMS & CONDITIONS MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-dropdown);
  animation: fadeUp 0.25s ease;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.modal-close {
  border: none;
  background: var(--surface-secondary);
  color: var(--slate);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: var(--danger);
  color: #fff;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.modal-updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-body h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
  margin: 18px 0 6px;
}

.modal-body h3:first-of-type {
  margin-top: 0;
}

.modal-body p {
  margin-bottom: 4px;
}

.modal-copyright {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-footer .btn-submit {
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .modal-box {
    max-height: 90vh;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}