:root {
  --green: #0f5b54;
  --green-dark: #063b36;
  --green-deep: #052f2b;
  --gold: #c9a24a;
  --gold-light: #dfc474;
  --white: #fff;
  --muted: rgba(255, 255, 255, 0.64);
  --card: rgba(7, 48, 43, 0.68);
  --line: rgba(201, 162, 74, 0.28);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Vazirmatn", sans-serif !important;
}
body {
  background-image: url("../assets/images/background-login.png") center center /
    cover no-repeat fixed;
  color: #fff;
}
button,
input {
  font: inherit;
}
button {
  border: 0;
}

.auth-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(3, 31, 28, 0.12), rgba(3, 31, 28, 0.28)),
    url("../assets/images/background-login.png") center center / cover no-repeat;
  isolation: isolate;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.auth-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
}
.auth-bg__glow--one {
  width: 430px;
  height: 430px;
  right: -100px;
  top: -140px;
  background: #0d665c;
}
.auth-bg__glow--two {
  width: 360px;
  height: 360px;
  left: -150px;
  bottom: 80px;
  background: #084a43;
}
.auth-bg__mountain {
  position: absolute;
  bottom: -8%;
  width: 72%;
  height: 38%;
  opacity: 0.28;
  filter: blur(1px);
  background: linear-gradient(
    145deg,
    transparent 5%,
    #0b4b44 30%,
    #021b19 72%,
    transparent 73%
  );
  transform: skewX(-16deg) rotate(-4deg);
}
.auth-bg__mountain--one {
  left: -8%;
}
.auth-bg__mountain--two {
  right: -12%;
  transform: skewX(16deg) rotate(5deg) scaleX(-1);
}
.auth-bg__ribbon {
  position: absolute;
  left: -75px;
  bottom: -115px;
  width: 270px;
  height: 560px;
  border: 2px solid rgba(201, 162, 74, 0.85);
  border-left: 0;
  border-radius: 50%;
  transform: rotate(18deg);
  box-shadow:
    0 0 22px rgba(201, 162, 74, 0.18),
    inset 0 0 10px rgba(201, 162, 74, 0.12);
}
.auth-bg__ribbon::after {
  content: "";
  position: absolute;
  inset: 7px 0 7px 12px;
  border: 1px solid rgba(78, 150, 137, 0.55);
  border-left: 0;
  border-radius: 50%;
}
.auth-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.auth-brand {
  padding-top: 48px;
  text-align: center;
}
.auth-brand__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.auth-brand__mark {
  font-family: Inter, sans-serif;
  font-size: 40px;
  line-height: 0.8;
  font-weight: 800;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(223, 196, 116, 0.2);
  letter-spacing: -5px;
}
.auth-brand__name {
  margin-top: 12px;
  font-family: Inter, sans-serif;
  font-size: 27px;
  letter-spacing: 6px;
  color: #e0c26e;
}
.auth-brand__sub {
  margin-top: 7px;
  font-family: Inter, sans-serif;
  font-size: 8px;
  letter-spacing: 4px;
  color: rgba(223, 196, 116, 0.82);
}

.auth-shell {
  width: min(100%, 560px);
  padding: 35px 20px 30px;
  display: flex;
  justify-content: center;
}
.auth-card {
  position: relative;
  width: 100%;
  min-height: 565px;
  padding: 42px 48px 34px;
  border: 1px solid rgba(126, 205, 190, 0.36);
  border-radius: 24px;
  background: linear-gradient(
    145deg,
    rgba(16, 78, 70, 0.72),
    rgba(2, 39, 35, 0.76)
  );
  box-shadow:
    -12px -12px 30px rgba(63, 154, 140, 0.08),
    18px 18px 36px rgba(0, 10, 9, 0.34),
    inset 1px 1px 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 23px;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(255, 255, 255, 0.09),
    transparent 24%,
    transparent 75%,
    rgba(201, 162, 74, 0.08)
  );
}

.auth-step {
  position: absolute;
  inset: 42px 48px 34px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.auth-step.is-active {
  position: relative;
  inset: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
}

.auth-card__head {
  text-align: center;
}
.auth-eyebrow {
  font-family: Inter, sans-serif;
  font-size: 8px;
  letter-spacing: 2.2px;
  color: var(--gold-light);
}
.auth-card h1,
.auth-card h2 {
  margin: 12px 0 8px;
  font-size: 25px;
  line-height: 1.55;
  font-weight: 800;
  color: #fff;
}
.auth-card__head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  line-height: 2.1;
}
.auth-card__head strong {
  color: var(--gold-light);
  font-weight: 700;
}

.auth-form {
  margin-top: 34px;
}
.field-label {
  display: block;
  margin: 0 5px 9px;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.phone-field {
  height: 62px;
  display: flex;
  direction: ltr;
  align-items: center;
  border-radius: 17px;
  background: rgba(63, 129, 118, 0.33);
  border: 1px solid rgba(133, 213, 199, 0.18);
  box-shadow:
    inset 5px 5px 10px rgba(0, 20, 18, 0.22),
    inset -4px -4px 9px rgba(105, 181, 169, 0.12);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.phone-field:focus-within {
  border-color: rgba(223, 196, 116, 0.7);
  box-shadow:
    inset 4px 4px 9px rgba(0, 20, 18, 0.24),
    inset -3px -3px 8px rgba(120, 195, 183, 0.12),
    0 0 0 3px rgba(201, 162, 74, 0.07);
}
.phone-country {
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.iran-flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(#239f40 0 33%, #fff 33% 66%, #e53232 66%);
}
.iran-flag i {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(201, 162, 74, 0.9);
  border-radius: 50%;
}
.phone-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 17px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  direction: ltr;
  font-family: Inter, sans-serif;
  font-size: 15px;
  letter-spacing: 0.4px;
}
.phone-field input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.field-error {
  min-height: 18px;
  margin: 7px 4px 0;
  color: #f0a29b;
  font-size: 9px;
  line-height: 1.7;
}

.auth-main-button {
  position: relative;
  width: 100%;
  height: 58px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 17px;
  background: linear-gradient(145deg, #e4c879 0%, #c9a24a 52%, #a98031 100%);
  color: #073b36;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  box-shadow:
    -7px -7px 15px rgba(255, 255, 255, 0.07),
    10px 10px 20px rgba(0, 12, 11, 0.35),
    inset 1px 1px 2px rgba(255, 255, 255, 0.45),
    inset -2px -2px 5px rgba(75, 52, 12, 0.24);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    filter 0.2s;
}
.auth-main-button::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 15px;
  pointer-events: none;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.38),
    inset -2px -2px 5px rgba(80, 55, 13, 0.18);
}
.auth-main-button:hover {
  transform: translateY(-3px);
  filter: saturate(1.05);
  box-shadow:
    -9px -9px 18px rgba(255, 255, 255, 0.09),
    13px 13px 24px rgba(0, 12, 11, 0.42),
    inset 1px 1px 3px rgba(255, 255, 255, 0.5),
    inset -2px -2px 6px rgba(75, 52, 12, 0.26);
}
.auth-main-button:active {
  transform: translateY(1px);
  box-shadow:
    inset 5px 5px 10px rgba(0, 20, 18, 0.3),
    inset -5px -5px 10px rgba(255, 255, 255, 0.35);
}
.auth-main-button i {
  position: relative;
  z-index: 2;
  font-size: 15px;
  transition: transform 0.2s;
}
.auth-main-button:hover i {
  transform: translateX(-4px);
}
.auth-main-button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}
.button-loader {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(7, 59, 54, 0.25);
  border-top-color: #073b36;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.auth-main-button.is-loading span:first-child,
.auth-main-button.is-loading i {
  display: none;
}
.auth-main-button.is-loading .button-loader {
  display: block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.security-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 9px;
}
.security-note__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 74, 0.48));
}
.security-note__line:last-child {
  transform: scaleX(-1);
}
.security-note i {
  color: var(--gold-light);
  font-size: 15px;
}

.auth-features {
  margin-top: auto;
  padding-top: 31px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.auth-feature {
  text-align: center;
}
.auth-feature__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 18px;
  background: rgba(15, 91, 84, 0.62);
  box-shadow:
    -4px -4px 9px rgba(102, 188, 174, 0.09),
    5px 5px 10px rgba(0, 15, 13, 0.3),
    inset 1px 1px 3px rgba(255, 255, 255, 0.05);
}
.auth-feature h3 {
  margin: 0;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}
.auth-feature p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  line-height: 1.8;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.otp-input {
  width: 100%;
  height: 58px;
  text-align: center;
  border: 1px solid rgba(130, 206, 194, 0.18);
  border-radius: 14px;
  outline: 0;
  background: rgba(52, 119, 108, 0.32);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 21px;
  font-weight: 600;
  box-shadow:
    inset 4px 4px 8px rgba(0, 20, 18, 0.2),
    inset -4px -4px 8px rgba(105, 181, 169, 0.1);
  transition: 0.2s;
}
.otp-input:focus {
  border-color: rgba(223, 196, 116, 0.82);
  box-shadow:
    0 0 0 3px rgba(201, 162, 74, 0.07),
    inset 4px 4px 8px rgba(0, 20, 18, 0.2);
}
.otp-input.is-filled {
  border-color: rgba(201, 162, 74, 0.4);
}
.otp-timer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 2px 0 22px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
}
.otp-timer i,
.otp-timer strong {
  color: var(--gold-light);
}
.otp-timer strong {
  font-family: Inter, sans-serif;
  font-size: 10px;
  min-width: 32px;
  text-align: center;
}
.change-phone {
  align-self: center;
  margin-top: 19px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  cursor: pointer;
  transition: color 0.2s;
}
.change-phone:hover {
  color: var(--gold-light);
}
.change-phone i {
  color: var(--gold-light);
}
.otp-security {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.otp-security span {
  display: none;
}
.otp-security i {
  color: var(--gold-light);
  font-size: 15px;
}
.otp-security p {
  margin: 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.back-home {
  position: relative;
  margin-top: auto;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 10px;
  text-decoration: none;
  transition:
    color 0.2s,
    transform 0.2s;
}
.back-home:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}
.back-home i {
  font-size: 15px;
  color: var(--gold-light);
}
.auth-footer {
  position: absolute;
  right: 42px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  text-align: right;
}
.auth-footer b {
  font-family: Inter, sans-serif;
  color: rgba(223, 196, 116, 0.68);
  font-size: 8px;
  letter-spacing: 3px;
}

.auth-toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 50;
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  padding: 12px 18px;
  border: 1px solid rgba(223, 196, 116, 0.3);
  border-radius: 13px;
  background: rgba(4, 39, 35, 0.92);
  color: #fff;
  font-size: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transition: 0.25s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.auth-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}
