/* linenway.ru auth subdomain — бренд-токены и мобильные формы (без витринного layout) */
:root {
  --bg-base: #f9f5ee;
  --bg-elevated: #ffffff;
  --line: #e0d7c5;
  --text: #1f2937;
  --text-soft: #4b5563;
  --muted: #6b7280;
  --accent: #7a5c2b;
  --accent-strong: #4b3a1c;
  --accent-soft: #f0e1c7;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
  --font-sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --err-bg: #fef2f2;
  --err-text: #b91c1c;
  --ok-bg: #fffbeb;
  --ok-text: #92400e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.auth-wrap {
  width: 100%;
  max-width: 28rem;
}

.auth-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  padding: 2rem;
}

.auth-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.auth-input,
.auth-select {
  width: 100%;
  min-height: 44px;
  padding: 0.65rem 1rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  -webkit-appearance: none;
  appearance: none;
}

.auth-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.25rem;
}

.auth-input:focus-visible,
.auth-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}

.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fdfaf4;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.auth-btn:hover {
  background: var(--accent-strong);
}

.auth-btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

.auth-btn:active {
  transform: translateY(1px);
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.45;
}

.auth-alert--error {
  background: var(--err-bg);
  color: var(--err-text);
  border: 1px solid rgba(185, 28, 28, 0.2);
}

.auth-alert--ok {
  background: var(--ok-bg);
  color: var(--ok-text);
  border: 1px solid rgba(146, 64, 14, 0.2);
}

.auth-muted {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.auth-muted a,
.auth-foot a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.auth-muted a:hover,
.auth-foot a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.auth-foot {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-foot a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.auth-foot a:hover {
  color: var(--text);
}

.auth-text {
  color: var(--text-soft);
  font-size: 0.875rem;
  line-height: 1.5;
}
