* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --panel: #0f172a;
  --panel-2: #111827;
  --border: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --input: #0b1220;
  --success-bg: #063b2d;
  --success-text: #c6f6d5;
  --error-bg: #4b1d1d;
  --error-text: #fecaca;
}

body.auth-body {
  min-height: 100vh;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(99, 102, 241, 0.1),
      transparent 26%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(139, 92, 246, 0.1),
      transparent 28%
    ),
    #090d18;
  color: var(--text);
}

.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
}

.auth-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  padding: 48px;
  isolation: isolate;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.auth-visual-login::before {
  background-image:
    linear-gradient(135deg, rgba(6, 10, 22, 0.4), rgba(6, 10, 22, 0.68)),
    url("../images/bg-login.jpg");
}

.auth-visual-signup::before {
  background-image:
    linear-gradient(135deg, rgba(6, 10, 22, 0.4), rgba(6, 10, 22, 0.68)),
    url("../images/bg-signup.jpg");
}

.auth-visual-forgot::before {
  background-image:
    linear-gradient(135deg, rgba(6, 10, 22, 0.4), rgba(6, 10, 22, 0.68)),
    url("../images/bg-forgot.jpg");
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(
    to top,
    rgba(7, 10, 18, 0.9) 5%,
    rgba(7, 10, 18, 0.3) 55%,
    rgba(7, 10, 18, 0.15) 100%
  );
}

.auth-visual-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 20px;
}

.auth-visual-content h1 {
  font-size: clamp(2.3rem, 4vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 16px;
  max-width: 500px;
}

.auth-visual-content p {
  color: #d1d5db;
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 500px;
}

.visual-shapes {
  position: absolute;
  inset: auto 0 -20px auto;
  width: 100%;
  height: 220px;
  pointer-events: none;
}

.shape {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.9;
  filter: blur(0.2px);
}

.shape-1 {
  width: 180px;
  height: 180px;
  right: 10%;
  bottom: 10px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.28),
    rgba(139, 92, 246, 0.15)
  );
  border-radius: 32px;
  transform: rotate(18deg);
}

.shape-2 {
  width: 110px;
  height: 110px;
  right: 33%;
  bottom: 88px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.shape-3 {
  width: 210px;
  height: 16px;
  right: 3%;
  bottom: 44px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.28)
  );
}

.shape-4 {
  width: 170px;
  height: 170px;
  right: 12%;
  bottom: 12px;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.18),
    rgba(99, 102, 241, 0.18)
  );
  border-radius: 50px;
  transform: rotate(-20deg);
}

.shape-5 {
  width: 120px;
  height: 120px;
  right: 34%;
  bottom: 68px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 28px;
}

.shape-6 {
  width: 190px;
  height: 20px;
  right: 4%;
  bottom: 46px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.25)
  );
  border-radius: 999px;
}

.shape-7 {
  width: 150px;
  height: 150px;
  right: 10%;
  bottom: 14px;
  background: linear-gradient(
    135deg,
    rgba(244, 114, 182, 0.2),
    rgba(99, 102, 241, 0.15)
  );
  border-radius: 50%;
}

.shape-8 {
  width: 90px;
  height: 90px;
  right: 32%;
  bottom: 88px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transform: rotate(30deg);
}

.shape-9 {
  width: 230px;
  height: 18px;
  right: 2%;
  bottom: 42px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.22)
  );
  border-radius: 999px;
}

.auth-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 22px;
  background: linear-gradient(180deg, #0b1020 0%, #0a1120 100%);
}

.auth-box {
  width: 100%;
  max-width: 430px;
}

.auth-header {
  margin-bottom: 24px;
}

.auth-header h2 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 8px;
  font-weight: 800;
}

.auth-header p {
  color: var(--muted);
  line-height: 1.65;
}

.social-auth {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.social-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: 0.22s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
}

.social-google {
  background: #ffffff;
  color: #111827;
}

.social-google:hover {
  background: #f3f4f6;
}

.social-apple {
  background: #111827;
  color: #ffffff;
}

.social-apple:hover {
  background: #1a2438;
}

.social-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 22px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  background: #0b1020;
  color: var(--muted);
  padding: 0 12px;
  font-size: 13px;
}

.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: #dbe4f0;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input);
  color: white;
  font-size: 15px;
  outline: none;
  transition: 0.22s ease;
}

.input-group input::placeholder {
  color: #718198;
}

.input-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.text-link,
.auth-footer-text a,
.reset-box a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover,
.auth-footer-text a:hover,
.reset-box a:hover {
  text-decoration: underline;
}

.primary-btn {
  width: 100%;
  padding: 15px 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(99, 102, 241, 0.22);
  transition: 0.22s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  opacity: 0.98;
}

.auth-footer-text {
  margin-top: 18px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.form-message {
  padding: 13px 14px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 14px;
  line-height: 1.5;
}

.form-message.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.form-message.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.reset-box {
  margin-bottom: 18px;
  padding: 15px;
  border-radius: 14px;
  background: #0e1628;
  border: 1px solid var(--border);
  word-break: break-word;
}

.reset-box span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .auth-wrapper {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 300px;
    padding: 28px 20px;
    align-items: flex-end;
  }

  .auth-panel {
    min-height: auto;
    padding: 28px 18px 36px;
  }

  .visual-shapes {
    height: 160px;
  }
}

@media (max-width: 640px) {
  .auth-box {
    max-width: 100%;
  }

  .auth-header h2 {
    font-size: 1.7rem;
  }

  .auth-visual-content h1 {
    font-size: 2rem;
  }

  .social-btn {
    font-size: 14px;
    padding: 13px 14px;
  }

  .input-group input {
    padding: 14px 14px;
  }
}
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.auth-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 28px;
  background: linear-gradient(180deg, #0b1020 0%, #0a1120 100%);
}

.auth-box {
  width: 100%;
  max-width: 460px;
  padding: 8px 2px;
}

.auth-visual-content h1 {
  font-size: clamp(2.1rem, 3.4vw, 3.6rem);
  line-height: 1.04;
  margin-bottom: 14px;
  max-width: 460px;
}

.auth-visual-content p {
  color: #d1d5db;
  line-height: 1.7;
  font-size: 1rem;
  max-width: 430px;
}

.auth-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
  margin-bottom: 18px;
}

.auth-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
}

.auth-box {
  position: relative;
}

.auth-panel .auth-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  padding: 28px;
}

@media (max-width: 980px) {
  .auth-visual {
    min-height: 240px;
    padding: 24px 18px;
  }

  .auth-visual-content h1 {
    font-size: 2rem;
  }

  .auth-panel {
    padding: 20px 16px 28px;
  }

  .auth-panel .auth-box {
    padding: 22px 18px;
    border-radius: 20px;
  }
}
/* OTP CODE BOXES */
.otp-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.otp-input {
  width: 100%;
  height: 62px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--input);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: 0.22s ease;
}

.otp-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

@media (max-width: 640px) {
  .otp-group {
    gap: 8px;
  }

  .otp-input {
    height: 54px;
    font-size: 21px;
  }
}
