.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 32px;
  width: 100%;
  max-width: 600px;
}

.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.logo img {
  height: 40px;
}

.title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Переключатель типа регистрации */
.typeSwitch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 24px;
}

.typeOption {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.typeOption:hover {
  color: var(--text-primary);
}

.typeOptionActive {
  background: var(--interactive);
  color: #fff;
}

.twoCol {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 24px;
  align-items: start;
}

.leftCol {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rightCol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.codeHint {
  font-size: 12px;
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}

/* Кнопка возврата на шаг ввода данных */
.backButton {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 16px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.backButton:hover {
  color: var(--text-primary);
}

/* Документы для юридического лица */
.documents {
  margin-top: 24px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.documentsTitle {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.documentsSubtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.documentsList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.documentItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

.documentName {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.attachButton {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--interactive);
  padding: 8px 14px;
  border: 1px solid var(--interactive);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.attachButton:hover {
  background: var(--interactive);
  color: #fff;
}

.fileInput {
  display: none;
}

.error {
  color: #ff5a5a;
  font-size: 13px;
  margin-top: 12px;
  text-align: center;
}

.submitWrapper {
  margin-top: 28px;
}

.legal {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.6;
}

.legal a {
  color: var(--interactive);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .card {
    padding: 32px 20px;
    border-radius: 0;
  }

  .twoCol {
    grid-template-columns: 1fr;
  }

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