:root {
  --bg: #f5f5f0;
  --card-bg: #fff;
  --foreground: #0a0a0a;
  --muted: #6d6d6a;
  --accent: #7c5ce0;
  --accent-ink: #7c5ce0;
  --border: #e8e8e5;
  --error: #e05c5c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--foreground);
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: #f8f8f6;
  border-radius: 10px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--foreground);
}

.tab-btn.active {
  background: var(--card-bg);
  color: var(--foreground);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-form {
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--foreground);
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}

.btn-primary {
  width: 100%;
  padding: 12px;
  background: var(--accent-ink);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  opacity: 0.9;
}

.oauth-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.oauth-divider::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.oauth-divider span {
  position: relative;
  background: var(--card-bg);
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.oauth-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--foreground);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.oauth-btn:hover {
  border-color: var(--accent);
  background: #fafafa;
}

.oauth-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
}

.oauth-btn.yandex .oauth-icon {
  background: #fc3f1d;
  color: #fff;
}

.oauth-btn.google .oauth-icon {
  background: #4285f4;
  color: #fff;
}

.oauth-btn.vk .oauth-icon {
  background: #0077ff;
  color: #fff;
}

.error-message {
  margin-top: 16px;
  padding: 12px;
  background: #fff4f4;
  border: 1.5px solid var(--error);
  border-radius: 8px;
  color: var(--error);
  font-size: 13px;
  text-align: center;
}
