/* Страницы входа и регистрации — дизайн-система v2. */

.acc {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f6f9f7 50%, #eef3f1 100%);
  overflow-x: hidden;
}

.acc::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 95, 74, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 95, 74, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.acc__shapes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.acc__shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(31, 95, 74, 0.05);
}

.acc__shape:nth-child(1) { width: 420px; height: 420px; top: -80px; right: -60px; }
.acc__shape:nth-child(2) { width: 260px; height: 260px; bottom: 40px; right: 22%; }

.acc__topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}

.acc__back {
  font-size: var(--u-fs-small);
  color: var(--u-text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.acc__back:hover { color: var(--u-accent); }

.acc__body {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 40px 64px;
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.acc__card {
  background: #fff;
  border: 1px solid var(--u-border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(20, 61, 48, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.acc__card h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--u-text);
  margin-bottom: 8px;
}

.acc__card > p {
  font-size: var(--u-fs-body);
  color: var(--u-text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}

.acc__aside { padding-top: 8px; }

.acc__aside-title {
  font-size: 19px;
  font-weight: 600;
  color: var(--u-text);
  margin-bottom: 12px;
  line-height: 1.35;
}

.acc__aside-text {
  font-size: var(--u-fs-body);
  color: var(--u-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

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

.acc__list li {
  font-size: var(--u-fs-small);
  color: var(--u-text-secondary);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}

.acc__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--u-accent);
}

.acc__list strong { color: var(--u-text); font-weight: 600; }

/* --- Форма --- */

.acc__errors {
  background: var(--u-error-soft);
  border-left: 3px solid var(--u-error);
  border-radius: var(--u-radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  list-style: none;
}

.acc__errors li {
  font-size: var(--u-fs-small);
  color: #7d2c1c;
  line-height: 1.5;
}

.acc__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.acc__actions--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.acc__submit {
  width: 100%;
  justify-content: center;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
}

.acc__choice {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--u-border);
  border-radius: var(--u-radius-lg);
  text-decoration: none;
  color: inherit;
  text-align: left;
  transition: all var(--u-transition-fast);
  margin-bottom: 10px;
}

.acc__choice:hover {
  border-color: var(--u-accent);
  transform: translateY(-2px);
  box-shadow: var(--u-shadow-lg);
}

.acc__choice-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--u-radius-md);
  background: var(--u-accent-soft);
  color: var(--u-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.acc__choice-title {
  font-size: var(--u-fs-h3);
  font-weight: 600;
  color: var(--u-text);
}

.acc__choice-text {
  font-size: var(--u-fs-small);
  color: var(--u-text-muted);
  margin-top: 2px;
  line-height: 1.45;
}

.acc__sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  font-size: var(--u-fs-tiny);
  color: var(--u-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.acc__sep::before,
.acc__sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--u-border);
}

.acc__link {
  font-size: var(--u-fs-small);
  color: var(--u-accent);
  text-decoration: none;
  font-weight: 500;
}

.acc__link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .acc__body {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 20px 48px;
  }
  .acc__topbar { padding: 16px 20px; }
  .acc__card { padding: 24px; }
}
