:root {
  --cream: #fef7ea;
  --mint: #d9eed3;
  --amber: #ffac1a;
  --green: #20af7b;
  --deep-green: #046d57;
  --text: #12382f;
  --muted: rgba(18, 56, 47, 0.68);
  --card: rgba(255, 255, 255, 0.92);
  --border: rgba(4, 109, 87, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", sans-serif !important;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 26px);
  /* background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.42), transparent 34%),
    radial-gradient(circle at 84% 82%, rgba(4, 109, 87, 0.32), transparent 46%),
    linear-gradient(150deg, #d9eed3 0%, #fef7ea 50%, #b7e2ce 100%); */
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(4, 109, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 109, 87, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.22;
}

.auth-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.auth-card {
  position: relative;
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(340px, 1.02fr) minmax(320px, 0.98fr);
  border-radius: 34px;
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.95), rgba(217, 238, 211, 0.55));
  border: 1px solid rgba(4, 109, 87, 0.2);
  box-shadow:
    0 36px 70px rgba(4, 109, 87, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.auth-forms {
  padding: clamp(24px, 3vw, 42px);
  min-height: clamp(480px, 72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-info {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 42px);
  border-inline-end: 1px solid rgba(4, 109, 87, 0.14);
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.38), transparent 40%),
    radial-gradient(circle at 84% 84%, rgba(4, 109, 87, 0.26), transparent 46%),
    linear-gradient(140deg, rgba(217, 238, 211, 0.84), rgba(131, 208, 179, 0.7));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
}

.auth-info::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.24;
}

.hero-visual {
  position: relative;
  width: min(520px, 100%);
  margin-inline: auto;
  z-index: 1;
}

.hero-badge {
  position: relative;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  white-space: nowrap;
  border-radius: 999px;
  margin-bottom: 60px;
  padding: 0.38rem 1rem;
  font-size: 20px;
  margin-right: 18%;
  font-weight: 800;
  color: #0c5d4d;
  background: linear-gradient(138deg, rgba(254, 247, 234, 0.95), rgba(217, 238, 211, 0.9));
  border: 1px solid rgba(4, 109, 87, 0.24);
  box-shadow:
    0 10px 24px rgba(4, 109, 87, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  isolation: isolate;
  overflow: hidden;
  animation: badgeFloat 4.5s ease-in-out infinite;
}

.hero-badge::before {
  content: "";
  position: absolute;
  top: -120%;
  left: -28%;
  width: 42%;
  height: 320%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.84), transparent);
  transform: rotate(18deg);
  animation: badgeShine 5.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.hero-badge::after {
  content: "✦";
  margin-inline-start: 7px;
  color: #ffac1a;
  font-size: 0.78rem;
  line-height: 1;
}

.hero-badge-mobile {
  display: none;
}

.orbit-system {
  --orb-size: clamp(190px, 22vw, 250px);
  position: relative;
  width: clamp(320px, 36vw, 470px);
  aspect-ratio: 1;
  margin: 10px auto 0;
}

.central-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--orb-size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  cursor: default;
}

.orb-core {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 26%, rgba(255, 255, 255, 0.95), rgba(217, 238, 211, 0.76) 48%, rgba(32, 175, 123, 0.82) 100%);
  box-shadow:
    0 16px 38px rgba(4, 109, 87, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orbPulse 3.8s ease-in-out infinite;
}

.orb-core img {
  width: 66%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(4, 109, 87, 0.22));
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(4, 109, 87, 0.18);
}

.ring-1 {
  width: 74%;
  height: 74%;
  border-style: dashed;
  animation: ringRotate 11s linear infinite;
}

.ring-2 {
  width: 102%;
  height: 102%;
  border-color: rgba(4, 109, 87, 0.26);
  animation: ringRotate 16s linear infinite reverse;
}

.ring-3 {
  width: 132%;
  height: 132%;
  border-color: rgba(255, 255, 255, 0.34);
  animation: ringRotate 20s linear infinite;
}

.orbit-feature {
  --orbit-base: translateY(0);
  position: absolute;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(4, 109, 87, 0.24);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 20px rgba(4, 109, 87, 0.18);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  transform: var(--orbit-base);
  animation: orbitFeatureFloat 6s ease-in-out infinite;
}

.orbit-feature-1 {
  top: 3%;
  left: 50%;
  --orbit-base: translateX(-50%);
}

.orbit-feature-2 {
  top: 24%;
  right: -3%;
  animation-delay: 0.6s;
}

.orbit-feature-3 {
  top: 57%;
  right: -7%;
  animation-delay: 1.2s;
}

.orbit-feature-4 {
  bottom: 15%;
  left: -6%;
  animation-delay: 1.8s;
}

.orbit-feature-5 {
  top: 30%;
  left: -9%;
  animation-delay: 2.4s;
}

.hero-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.hero-caption-mobile-forms {
  display: none;
}

.hero-caption p {
  margin: 0;
}

.hero-caption p:not(.chip) {
  max-width: 350px;
  color: rgba(18, 56, 47, 0.8);
  font-size: 0.92rem;
  line-height: 1.9;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.24rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(4, 109, 87, 0.24);
  color: #0b7257;
  font-size: 0.82rem;
  background: rgba(254, 247, 234, 0.78);
  box-shadow: 0 8px 14px rgba(4, 109, 87, 0.1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(140deg, #20af7b, #046d57);
  color: #fff;
  box-shadow: 0 12px 28px rgba(4, 109, 87, 0.2);
  font-family: "Vazirmatn", sans-serif;
}

.btn-outline {
  border: 1px solid rgba(4, 109, 87, 0.22);
  background: rgba(255, 255, 255, 0.45);
  color: #0d5547;
  text-decoration: none;
  font-family: "Vazirmatn", sans-serif;
}

.login-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.toggle-btn {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
  color: var(--text);
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: "Vazirmatn", sans-serif;
  min-height: 46px;
}

.toggle-btn.active {
  background: linear-gradient(145deg, rgba(254, 247, 234, 0.9), rgba(217, 238, 211, 0.82));
  border-color: rgba(32, 175, 123, 0.44);
  color: #0d5a4a;
  box-shadow: 0 10px 22px rgba(4, 109, 87, 0.12);
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
  color: #204f44;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(4, 109, 87, 0.2);
  padding: 11px 14px;
  font-family: inherit;
  direction: rtl;
  color: #143f35;
  background: rgba(255, 255, 255, 0.85);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: rgba(32, 175, 123, 0.6);
  box-shadow: 0 0 0 4px rgba(32, 175, 123, 0.12);
}

.w-100 {
  width: 100%;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.alert {
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(255, 84, 84, 0.1);
  border-color: rgba(255, 84, 84, 0.3);
  color: #a31616;
}

.alert-success {
  background: rgba(32, 175, 123, 0.14);
  border-color: rgba(32, 175, 123, 0.32);
  color: #0d5848;
}

.phone-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.readonly-input {
  background: rgba(217, 238, 211, 0.66);
  border-color: rgba(4, 109, 87, 0.25);
  color: rgba(18, 56, 47, 0.75);
  opacity: 1;
}

.readonly-input:disabled {
  cursor: not-allowed;
}

.change-link {
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(4, 109, 87, 0.26);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
}

.text-link {
  color: #0d7d63;
  font-size: 0.84rem;
  text-decoration: none;
  font-weight: 700;
}

.resend-btn {
  margin-top: 10px;
  width: 100%;
  border: 1px solid rgba(4, 109, 87, 0.24);
  background: rgba(255, 255, 255, 0.72);
  color: #0d5547;
}

.d-none {
  display: none;
}

.form-note {
  font-size: 0.83rem;
  color: var(--muted);
}

.font_and_color {
  font-family: "Vazirmatn", sans-serif;
}

@keyframes ringRotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes orbPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 16px 38px rgba(4, 109, 87, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      0 20px 44px rgba(4, 109, 87, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }
}

@keyframes orbitFeatureFloat {
  0%,
  100% {
    transform: var(--orbit-base) translateY(0);
  }
  50% {
    transform: var(--orbit-base) translateY(-6px);
  }
}

@keyframes badgeFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes badgeShine {
  0% {
    left: -28%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  55% {
    left: 120%;
    opacity: 0;
  }
  100% {
    left: 120%;
    opacity: 0;
  }
}

@media (max-width: 980px) {
  body {
    align-items: flex-start;
  }

  .auth-card {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .auth-info {
    border-inline-end: 0;
    border-bottom: 1px solid rgba(4, 109, 87, 0.14);
    padding: 24px 22px 20px;
    order: -1;
  }

  .hero-visual {
    max-width: 430px;
  }

  .orbit-system {
    --orb-size: clamp(170px, 30vw, 220px);
    width: clamp(290px, 54vw, 400px);
    margin-top: 22px;
  }

  .auth-forms {
    min-height: auto;
    padding: 24px 22px;
    justify-content: flex-start;
  }

  .hero-caption-info {
    display: none !important;
  }

  .hero-caption-mobile-forms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  body {
    padding: 10px;
  }

  .auth-card {
    border-radius: 22px;
  }

  .hero-badge {
    align-self: center;
    margin-top: 0;
    margin-right: 0;
    margin-bottom: 8px;
    font-size: 0.68rem;
    padding: 0.28rem 0.68rem;
  }

  .hero-badge-form {
    display: none;
  }

  .hero-badge-mobile {
    display: inline-flex;
  }

  .orbit-feature {
    font-size: 0.68rem;
    padding: 0.32rem 0.56rem;
  }

  .orbit-feature-2,
  .orbit-feature-4 {
    display: none;
  }

  .orbit-system {
    --orb-size: clamp(155px, 44vw, 205px);
    width: clamp(250px, 76vw, 340px);
  }

  .auth-info {
    order: 1;
    border-top: 0;
    border-bottom: 1px solid rgba(4, 109, 87, 0.14);
    padding: 16px 16px 12px;
  }

  .auth-forms {
    order: 2;
    padding: 16px 16px 18px;
  }

  .hero-caption-info {
    display: none !important;
  }

  .hero-caption-mobile-forms {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
  }

  .form-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .hero-caption .chip {
    order: 1;
  }

  .hero-caption .btn-outline {
    order: 2;
  }
}

@media (max-width: 560px) {
  .auth-card {
    border-radius: 18px;
  }

  .login-toggle {
    grid-template-columns: 1fr;
  }

  .toggle-btn {
    min-height: 42px;
    font-size: 0.9rem;
  }

  .orbit-system {
    --orb-size: clamp(150px, 50vw, 190px);
    width: min(280px, 82vw);
  }

  .orb-core img {
    width: 64%;
  }

  .orbit-feature {
    display: none;
  }

  .phone-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .change-link {
    width: 100%;
    text-align: center;
  }
}
