/* 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;
}

/*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 > 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;
  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;
}

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

/* REMEMBER ROW */
.remember-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}
.remember-me input {
  width: auto;
  margin: 0;
  accent-color: var(--blue);
}

.forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: color 0.2s;
}
.forgot:hover {
  color: var(--blue-light);
  text-decoration: none;
}

/* 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: 4px 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;
  padding: 13px;
  gap: 10px;
  border: 1px solid rgba(30, 75, 140, 0.2);
  border-radius: 10px;
  background: var(--white);
  font-size: 14px;
  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);
  }
}

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

/* eye-open shows by default, eye-closed hides */
.toggle-password .eye-closed {
  display: none;
}

/* when .is-visible is added by JS — swap them */
.toggle-password.is-visible .eye-open {
  display: none;
}
.toggle-password.is-visible .eye-closed {
  display: block;
}

/*
   RESPONSIVE */

/* Tablet */
@media (max-width: 1024px) {
  .auth-left {
    padding: 32px 32px;
  }
  .auth-left-content h2 {
    font-size: 26px;
  }
  .auth-left-content {
    padding: 40px 0 32px;
  }
}

/* Mobile — hide left panel completely, form only */
@media (max-width: 768px) {
  .auth-left {
    display: none;
  }

  .auth-right {
    flex: 1;
    padding: 52px 16px 40px;
    background: var(--cream);
    align-items: flex-start;
  }

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

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

/* Small mobile */
@media (max-width: 480px) {
  .auth-right {
    padding: 32px 12px 40px;
  }

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

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

  .remember-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

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