/* alcomads.ru — вход и регистрация */

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: #FDFCFA;
  font-family: 'Golos Text', sans-serif;
  color: #1A1A1A;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 48px 16px;
}

.auth-logo { height: 72px; }

.auth-card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border: 1px solid #ECE7E1;
  padding: 40px 44px 36px;
}

/* Вкладки */
.tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #ECE7E1;
}
.tab {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: #8C857C;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 0 12px;
  cursor: pointer;
}
.tab.active {
  font-weight: 600;
  color: #1A1A1A;
  border-bottom-color: #1A1A1A;
}

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

/* Поля */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8C857C;
  font-weight: 600;
}
.field input {
  border: none;
  border-bottom: 1.5px solid #C9C2B9;
  padding: 10px 0;
  font: 400 15px 'Golos Text', sans-serif;
  background: none;
  outline: none;
  color: #1A1A1A;
  width: 100%;
  border-radius: 0;
}
.field input:focus { border-bottom-color: #1A1A1A; }

.pass-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1.5px solid #C9C2B9;
}
.pass-wrap:focus-within { border-bottom-color: #1A1A1A; }
.pass-wrap input { border-bottom: none; flex: 1; }
.pass-toggle {
  font: 500 12px 'Golos Text', sans-serif;
  color: #8C857C;
  background: none;
  border: none;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

.gate-question {
  border-bottom: 1.5px solid #C9C2B9;
  padding: 10px 0;
  font: 400 15px 'Golos Text', sans-serif;
  color: #1A1A1A;
  letter-spacing: 0;
  text-transform: none;
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #4A453F;
  cursor: pointer;
}
.check input { display: none; }
.check .box {
  width: 15px;
  height: 15px;
  border: 1.5px solid #1A1A1A;
  display: inline-block;
  flex-shrink: 0;
}
.check input:checked + .box { background: #1A1A1A; box-shadow: inset 0 0 0 2px #fff; }

.muted-link {
  color: #8C857C;
  text-decoration: none;
  border-bottom: 1px solid #C9C2B9;
  padding-bottom: 1px;
}
.muted-link:hover { color: #1A1A1A; }

/* Кнопки */
.btn {
  display: block;
  text-align: center;
  padding: 16px;
  font: 600 14px 'Golos Text', sans-serif;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}
.btn-dark { background: #1A1A1A; }
.btn-dark:hover { background: #333; }
.btn-red { background: #C2271C; }
.btn-red:hover { background: #8F1B13; }
.btn[disabled] { opacity: .6; cursor: default; }

.fine-print {
  margin: 0;
  font-size: 12px;
  color: #8C857C;
  line-height: 1.5;
  text-align: center;
}

.form-error {
  background: #FBEAE8;
  border: 1px solid #E8B4AF;
  color: #8F1B13;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px 14px;
}

.confirm-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}
.confirm-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #4A453F;
}

.auth-footer {
  border-top: 1px solid #ECE7E1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 48px;
  font-size: 13px;
  color: #8C857C;
}

@media (max-width: 480px) {
  .auth-main { padding: 32px 16px; gap: 24px; }
  .auth-logo { height: 56px; }
  .auth-card { padding: 28px 24px 24px; border-left: none; border-right: none; }
  .tab { font-size: 22px; }
  .auth-footer { justify-content: center; text-align: center; padding: 14px 20px; font-size: 11px; }
  .auth-footer span:first-child { display: none; }
}
