@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --limosms-font-family: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}

.limosms-mobile-auth,
.limosms-mobile-auth * {
  font-family: var(--limosms-font-family);
}

.limosms-mobile-auth {
  position: relative;
  max-width: 460px;
  margin: 40px auto;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
  box-sizing: border-box;
}
.logo-size {
  width: 100%;
}
.limosms-mobile-auth--align-left {
  margin-left: 20px;
  margin-right: auto;
}

.limosms-mobile-auth--align-center {
  margin-left: auto;
  margin-right: auto;
}

.limosms-mobile-auth--align-right {
  margin-left: auto;
  margin-right: 20px;
}

.limosms-mobile-auth--dir-ltr .limosms-mobile-auth__wrap {
  direction: ltr;
}

.limosms-mobile-auth--dir-rtl .limosms-mobile-auth__wrap {
  direction: rtl;
}

.limosms-mobile-auth::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.3)
  );
  pointer-events: none;
  border-radius: inherit;
}

.limosms-mobile-auth__wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.96);
  padding: 28px;
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 16px 40px rgba(15, 23, 42, 0.08);
}

.limosms-mobile-auth *,
.limosms-mobile-auth *::before,
.limosms-mobile-auth *::after {
  box-sizing: inherit;
}

.limosms-mobile-auth__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: #111827;
  line-height: 1.5;
}

.limosms-mobile-auth__subtitle {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  line-height: 1.7;
}

.limosms-mobile-auth__message {
  min-height: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  color: #64748b;
}

.limosms-mobile-auth__tab-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.limosms-mobile-auth__tab-button {
  border: none;
  border-radius: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.limosms-mobile-auth__tab-button.is-active {
  background: var(--limosms-accent-background, #2563eb);
  color: #ffffff;
}

.limosms-mobile-auth__panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.limosms-mobile-auth__panel--active {
  display: flex;
}

.limosms-mobile-auth__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.limosms-mobile-auth__checkbox input {
  margin: 0;
}

.limosms-mobile-auth__field--hidden {
  display: none !important;
}

.limosms-mobile-auth__message.is-error {
  color: #ef4444;
}

.limosms-mobile-auth__message.is-success {
  color: #16a34a;
}

.limosms-mobile-auth__message.is-info {
  color: #2563eb;
}

.limosms-mobile-auth__form {
  margin: 0;
}

.limosms-mobile-auth__step {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.limosms-mobile-auth__field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.limosms-mobile-auth__phone-row {
  display: grid;
  grid-template-columns: minmax(110px, 140px) 1fr;
  gap: 12px;
}

.limosms-mobile-auth__field--country-code {
  min-width: 0;
}

.limosms-mobile-auth__field label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-inline-start: 2px;
  line-height: 1.4;
}

.limosms-mobile-auth__input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #f8fbff;
  color: #0f172a !important;
  font-size: 15px;
  line-height: 1.2;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.limosms-mobile-auth__input::placeholder {
  color: #94a3b8;
}

.limosms-mobile-auth__input:focus {
  outline: none;
  border-color: var(--limosms-accent-color, #2563eb);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.limosms-mobile-auth__button {
  width: 100%;
  min-height: 50px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    opacity 0.2s ease;
  letter-spacing: 0.01em;
}

.limosms-mobile-auth__button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.limosms-mobile-auth__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.limosms-mobile-auth__button:active {
  transform: scale(0.98);
}

.limosms-mobile-auth__button--primary {
  background: var(--limosms-accent-background, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.18);
}

.limosms-mobile-auth__button--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22);
}

.limosms-mobile-auth__button--secondary {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.limosms-mobile-auth__button--secondary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.limosms-mobile-auth__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.limosms-mobile-auth__mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

.limosms-mobile-auth__mode-button {
  border: none;
  border-radius: 12px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.limosms-mobile-auth__mode-button.is-active {
  background: var(--limosms-accent-background, #2563eb);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.limosms-mobile-auth__register-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 4px;
}

.limosms-mobile-auth__register-fields.is-hidden {
  display: none !important;
}

.limosms-mobile-auth__captcha-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.limosms-mobile-auth__captcha-question {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  color: #1e3a8a;
  font-weight: 700;
  border: 1px solid #dbeafe;
}

@media (max-width: 480px) {
  .limosms-mobile-auth {
    margin: 16px;
    padding: 24px;
    border-radius: 16px;
  }

  .limosms-mobile-auth__wrap {
    gap: 20px;
  }

  .limosms-mobile-auth__title {
    font-size: 18px;
  }

  .limosms-mobile-auth__step {
    gap: 16px;
  }

  .limosms-mobile-auth__input,
  .limosms-mobile-auth__button {
    height: 48px;
  }

  .limosms-mobile-auth__actions {
    grid-template-columns: 1fr;
  }
}
