.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 80px);
}

.auth-form {
  width: 100%;
  max-width: 360px;
  padding: 2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
}

.auth-form h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.auth-form label {
  display: block;
  margin-bottom: 1rem;
}

.auth-form label span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-form input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-bg);
  color: var(--color-text);
}

.auth-form input:focus {
  border-color: var(--color-accent);
}

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

.auth-form .btn-primary:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.auth-form .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  font-size: 1rem;
}

.auth-subtitle {
  margin: -0.75rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.auth-hint {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

.auth-hint a {
  color: var(--color-accent);
  text-decoration: none;
}

.auth-hint a:hover {
  text-decoration: underline;
}

.auth-error {
  padding: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #f85149;
  background: rgba(248, 81, 73, 0.1);
  border-radius: 6px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.oauth-btn:hover { border-color: var(--color-accent); }
.oauth-btn--vk { background: rgba(0, 119, 255, 0.1); border-color: rgba(0, 119, 255, 0.3); }
.oauth-btn--vk:hover { background: rgba(0, 119, 255, 0.2); }
.oauth-btn--google { background: rgba(234, 67, 53, 0.08); border-color: rgba(234, 67, 53, 0.25); }
.oauth-btn--google:hover { background: rgba(234, 67, 53, 0.15); }
.oauth-btn--telegram { background: rgba(0, 136, 204, 0.1); border-color: rgba(0, 136, 204, 0.3); }
.oauth-btn--telegram:hover { background: rgba(0, 136, 204, 0.2); }
.oauth-btn--anon { opacity: 0.7; font-size: 0.9rem; }
.oauth-btn--anon:hover { opacity: 1; }
.oauth-divider {
  text-align: center;
  margin: 1rem 0;
  position: relative;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.oauth-divider::before, .oauth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}
.oauth-divider::before { left: 0; }
.oauth-divider::after { right: 0; }
.legacy-login { margin: 0.5rem 0; }
.legacy-toggle {
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.legacy-form { margin-top: 1rem; }

@media (max-width: 640px) {
  .auth-form {
    padding: 1.5rem;
  }
}
