/* REACHSKY auth pages - layout from mizhan-shop */
.mz-auth-main .container {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.mz-auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: calc(100dvh - var(--header-h, 88px));
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
}

.mz-auth-shell {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 22px;
  width: 100%;
}

.mz-auth-hero {
  display: grid;
  gap: 10px;
  justify-items: center;
  max-width: 680px;
  text-align: center;
}

.mz-auth-eyebrow {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mz-auth-title {
  margin: 0;
  color: #111111;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.mz-auth-subtitle {
  margin: 0;
  max-width: 52ch;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.75;
}

.mz-auth-card {
  width: min(100%, 472px);
  padding: 24px 22px;
  border: 1px solid #eef1f4;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.mz-auth-form {
  display: grid;
  gap: 18px;
}

.mz-auth-field {
  display: grid;
  gap: 8px;
}

.mz-auth-field label {
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.mz-auth-input {
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.mz-auth-input::before {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  opacity: 0.54;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mz-auth-input--user::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 8C9.65685 8 11 6.65685 11 5C11 3.34315 9.65685 2 8 2C6.34315 2 5 3.34315 5 5C5 6.65685 6.34315 8 8 8Z' stroke='%236B7280' stroke-width='1.25'/%3E%3Cpath d='M2.5 13.5C2.5 10.7386 4.73858 8.5 7.5 8.5H8.5C11.2614 8.5 13.5 10.7386 13.5 13.5' stroke='%236B7280' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mz-auth-input--mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='2.25' y='3.25' width='11.5' height='9.5' rx='1.75' stroke='%236B7280' stroke-width='1.25'/%3E%3Cpath d='M3.25 4.5L7.26327 7.63476C7.69978 7.97578 8.30022 7.97578 8.73673 7.63476L12.75 4.5' stroke='%236B7280' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.mz-auth-input--lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Crect x='3.25' y='7.25' width='9.5' height='6.5' rx='1.75' stroke='%236B7280' stroke-width='1.25'/%3E%3Cpath d='M5.5 7.25V5.75C5.5 4.36929 6.61929 3.25 8 3.25C9.38071 3.25 10.5 4.36929 10.5 5.75V7.25' stroke='%236B7280' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

.mz-auth-input:focus-within {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.mz-auth-input:focus-within::before {
  opacity: 0.82;
  transform: translateX(1px);
}

.mz-auth-input input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px 0 12px;
  border: 0;
  background: transparent;
  color: #111111;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  appearance: none;
}

.mz-auth-input input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.mz-auth-input input:focus {
  outline: none;
  box-shadow: none;
}

.mz-auth-input--password input {
  padding-right: 0;
}

.mz-auth-toggle {
  flex: 0 0 auto;
  margin-right: 8px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mz-auth-toggle:hover,
.mz-auth-toggle:focus-visible {
  background: #f5f6f8;
  color: #111111;
  outline: none;
}

.mz-auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mz-auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #525866;
  font-size: 13px;
  line-height: 1.6;
}

.mz-auth-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #111111;
}

.mz-auth-check--stacked {
  align-items: flex-start;
}

.mz-auth-link {
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 17, 0.16);
  text-underline-offset: 0.18em;
}

.mz-auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 0 18px;
  border: 1px solid var(--brand, #0b3a6e);
  border-radius: 0;
  background: var(--brand, #0b3a6e);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  box-shadow: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mz-auth-submit:hover,
.mz-auth-submit:focus-visible {
  background: var(--brand-hover, #145a9e);
  border-color: var(--brand-hover, #145a9e);
  transform: translateY(-1px);
  outline: none;
}

.mz-auth-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

.mz-auth-note-panel {
  position: relative;
  margin-top: 18px;
  padding: 14px 16px 14px 40px;
  border-radius: 0;
  background: #f7f8fa;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.7;
}

.mz-auth-note-panel::before {
  content: "i";
  position: absolute;
  top: 14px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1px solid #c7ccd4;
  border-radius: 0;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.mz-auth-note-panel p {
  margin: 0;
}

.mz-auth-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.7;
}

.mz-auth-notice--success {
  background: #ecfdf3;
  color: #027a48;
}

.mz-auth-notice--error {
  background: #fef3f2;
  color: #b42318;
}

.mz-auth-notice ul {
  margin: 0;
  padding-left: 18px;
}

.mz-auth-social {
  margin-top: 18px;
}

.mz-auth-social__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: #98a2b3;
  font-size: 12px;
}

.mz-auth-social__divider::before,
.mz-auth-social__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #edf0f5;
}

.mz-auth-social__divider span {
  flex-shrink: 0;
  line-height: 1;
}

.mz-auth-social__status {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
  text-align: center;
}

.mz-auth-social__status.is-busy {
  color: #1d4ed8;
}

.mz-auth-social__status.is-error {
  color: #b42318;
}

.mz-auth-social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border: 1px solid #dde3ee;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.mz-auth-social__btn:hover,
.mz-auth-social__btn:focus-visible {
  border-color: #c5cee0;
  background: #f8faff;
  color: #111111;
  text-decoration: none;
}

.mz-auth-social__btn.is-loading {
  opacity: 0.72;
  pointer-events: none;
  cursor: wait;
}

.mz-auth-social__icon {
  flex-shrink: 0;
  display: block;
}

@media (max-width: 640px) {
  .mz-auth-main {
    padding: 48px 0 72px;
  }

  .mz-auth-shell {
    gap: 20px;
  }

  .mz-auth-card {
    width: min(100%, 100%);
    padding: 22px 18px;
    border-radius: 0;
  }

  .mz-auth-row,
  .mz-auth-footnote {
    flex-direction: column;
    align-items: flex-start;
  }
}
