:root {
  --bg: #f3f4f7;
  --card: #ffffff;
  --text: #162338;
  --muted: #7c8798;
  --field: #f1f3f7;
  --brand-green: #06a56c;
  --brand-yellow: #ffd91f;
  --shadow: 0 18px 40px rgba(28, 39, 64, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  position: relative;
  width: min(100%, 392px);
  padding: 24px 18px 22px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.language-switcher {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
}

.language-button {
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.language-button.active {
  border-color: #c5d8cf;
  background: #eef8f3;
  color: var(--brand-green);
}

.back-button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-green);
  cursor: pointer;
}

.back-button svg {
  width: 24px;
  height: 24px;
}

.brand-link {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  margin-bottom: 22px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 146px;
  height: auto;
}

h1,
h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.step-copy {
  min-height: 60px;
}

.subtitle {
  margin: 7px 0 0;
  max-width: 290px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.field {
  display: block;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  background: var(--field);
  color: var(--text);
}

input::placeholder {
  color: #8d96a5;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  color: #232323;
  background: var(--brand-yellow);
  cursor: pointer;
}

.channel-button {
  text-decoration: none;
}

.hint {
  margin: -2px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.status,
.catalog-preview p {
  color: var(--muted);
}

.status {
  min-height: 20px;
  margin: 14px 2px 0;
  font-size: 13px;
}

.catalog-preview {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #f7f9fc;
}

.profile-phone {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
  }

  .auth-card {
    width: 100%;
    max-width: 392px;
  }

  .language-switcher {
    top: 14px;
    right: 14px;
  }
}
