:root {
  --bg: #f6f7fb;
  --card: #fff;
  --text: #111;
  --muted: #6b7280;
  --primary: #6d4aff;
  --primary-pressed: #5b38f3;
  --error: #e11d48;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font: 16px/1.35 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial;
}
.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  padding: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}
.logo img {
  width: 200px;
}
.logo span {
  font-weight: 700;
  letter-spacing: 0.2px;
}
h1 {
  margin: 4px 0 16px 0;
  font-size: 22px;
  text-align: center;
}
p.note {
  margin: 0 0 20px 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
/* Состояния кнопки */
.btn {
  transition: background .15s ease, opacity .15s ease, box-shadow .15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
  border-radius: 10px;
  height: 40px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  border: none;

}

/* hover/active — только когда НЕ disabled */
.btn-primary:hover:not(:disabled) {
  filter: brightness(0.97);
}
.btn-primary:active:not(:disabled) {
  background: var(--primary-pressed);
}

/* disabled: визуально выключаем и запрещаем клики */
.btn:disabled,
.btn[disabled],
.btn.disabled {
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  width: 100%;
  border-radius: 10px;
  height: 40px;
  font-size: 20px;
  color: #838383;
  font-weight: 600;
}

/* Если хочешь чуть “светлее” фон у disabled-кнопки */
.btn-primary:disabled,
.btn-primary[disabled] {
  background: #f1f1f1; /* можешь подобрать свою светлую версию фирменного цвета */
}

/* Фокус-кольцо для доступности */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, .25);
}
.or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 12px;
}
.or::before,
.or::after {
  content: "";
  height: 1px;
  background: #e5e7eb;
  flex: 1;
}
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 8px 2px;
}
input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  outline: none;
}
input:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}
.row {
  display: flex;
  gap: 10px;
}
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.link {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
}
.link:hover {
  text-decoration: underline;
}
.error {
  margin-top: 12px;
  color: var(--error);
  font-size: 14px;
  display: none;
}
.success {
  margin-top: 12px;
  color: #16a34a;
  font-size: 14px;
  display: none;
}
.footer {
  display: flex;
  margin: 10px;
  gap: 10px;
}
