 :root {
  --bg-main: #f7f6f3;
  --bg-soft: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.7);
  --text-main: #1f1f1f;
  --text-muted: #6f6f6f;
  --accent: #5b5bff;
  --accent-deep: #3e3ee6;
  --accent-soft: rgba(91, 91, 255, 0.14);
  --border-soft: rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.08);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --radius-pill: 22px;
  --font-display: "Space Grotesk", "Manrope", Arial, sans-serif;
  --font-body: "Manrope", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f6f3 0%, #ffffff 100%);
  color: var(--text-main);
  overflow-x: hidden;
  position: relative;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  z-index: -1;
}

body::before {
  background: rgba(91, 91, 255, 0.2);
  top: -160px;
  left: -160px;
}

body::after {
  background: rgba(232, 223, 211, 0.6);
  bottom: -200px;
  right: -160px;
}

.page {
  min-height: 100vh;
  display: flex;
  gap: 32px;
  padding: 40px;
}

.left,
.right {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: floatIn 0.8s ease both;
}

.left {
  flex: 0 0 46%;
  padding: 60px 70px;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px);
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 90px 70px;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  background: url("/Assets/IndexAssets/src/dubaigold2.jpg") center / cover no-repeat;
  animation-delay: 0.15s;
}

.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 58%),
    linear-gradient(135deg, rgba(250, 249, 246, 0.88), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(6px);
  z-index: 0;
}

.right::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='800' height='600' viewBox='0 0 800 600'><g fill='none' stroke='%235b5bff' stroke-width='1'><path d='M520 120 L740 120 L740 420 L520 420 Z'/><path d='M560 160 L700 160 L700 380 L560 380 Z'/><path d='M480 220 L560 220 L560 520 L480 520 Z'/><path d='M420 260 L480 260 L480 520 L420 520 Z'/><path d='M620 260 L680 260 L680 420 L620 420 Z'/><path d='M520 440 L740 440'/></g></svg>");
  background-repeat: no-repeat;
  background-position: 85% 75%;
  background-size: 520px auto;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.right-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.right-title {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #0f172a;
}

.right-subtext {
  font-size: 16px;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 18px;
}

.right-trustline {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #4b5563;
  font-weight: 500;
}

.right-meta {
  position: absolute;
  left: 70px;
  bottom: 40px;
  z-index: 1;
}

.right-stats {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #4b5563;
  opacity: 0.75;
  font-weight: 600;
}

.header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.brand img {
  height: 75px;
  width: auto;
  display: block;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease, opacity 0.3s ease;
}

h1 {
  font-family: var(--font-display);
  font-size: 34px;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.input-wrapper {
  position: relative;
  margin-bottom: 24px;
}

.input-wrapper input {
  width: 100%;
  height: 62px;
  padding: 30px 16px 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-40%);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.25s ease;
}

    .input-wrapper input:focus + label,
    .input-wrapper input:not(:placeholder-shown) + label,
    .input-wrapper.filled label {
        top: 14px;
        transform: translateY(0);
        font-size: 12px;
        font-weight: 600;
        color: var(--accent);
    }

.input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 91, 255, 0.15);
}

.input-wrapper.error input {
  border-color: #ff4d4f;
}

.input-wrapper.error label {
  color: #ff4d4f;
}

.input-wrapper .error {
  display: none;
  color: #ff4d4f;
  font-size: 12px;
  margin-top: 6px;
}

.input-wrapper.error .error {
  display: block;
}

button {
  width: 100%;
  height: 56px;
  border-radius: 999px;
  border: none;
  background: #e5e5e5;
  color: #999;
  font-size: 15px;
  cursor: not-allowed;
  margin: 10px 0 22px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button.active {
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(91, 91, 255, 0.25);
}

button.active:hover {
  transform: translateY(-2px);
}

.signup {
  font-size: 14px;
  color: var(--text-muted);
}

.signup a {
  margin-left: 10px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: var(--text-main);
  transition: border 0.2s ease, color 0.2s ease;
}

/* =========================
   RADIUS REFINEMENT
========================= */

.left,
.right,
.card,
.modal,
.panel {
  border-radius: var(--radius-lg);
}

.input-wrapper input,
.otp input,
.info-box {
  border-radius: var(--radius-sm);
}

button,
.signup a,
.pill {
  border-radius: var(--radius-pill);
}

.signup a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.right h2 {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 50px;
  font-weight: 700;
}

.right h2 span {
  color: #d7dcff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  width: 100%;
  flex: 1;
  align-content: stretch;
  grid-auto-rows: minmax(120px, 1fr);
}

.card {
  padding: 18px;
  border-radius: 18px;
  min-height: 140px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.card .icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 13px;
}

.card .icon i {
  color: var(--accent);
  font-size: 36px;
}

.card p {
  font-size: 17px;
  line-height: 1.2;
}

.card .card-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.note {
  display: block;
  margin-top: auto;
  font-size: 12px;
  opacity: 0.7;
  max-width: 520px;
}

.step {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.step.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

.step.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.steps-container {
  position: relative;
  min-height: 520px;
}

.hidden {
  display: none;
}

.password-hint {
  margin-top: -10px;
  margin-bottom: 28px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .page {
    flex-direction: column;
  }

  .left,
  .right {
    flex: 1 1 auto;
  }

  .right {
    padding: 70px 50px;
  }

  .right-meta {
    position: static;
    margin-top: 32px;
  }
}

@media (max-width: 700px) {
  .page {
    padding: 24px;
  }

  .left {
    padding: 50px 36px;
  }

  .right {
    padding: 60px 36px;
  }

  .right-meta {
    margin-top: 24px;
  }
}
