.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.back-link {
  align-self: flex-start;
  margin-bottom: 24px;
  color: #555;
  font-size: 14px;
  text-decoration: none;
}

.back-link:hover {
  color: #111;
  text-decoration: underline;
}

.auth-title {
  margin: 0 0 8px;
  color: #111;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}

.auth-page .subtitle {
  margin-bottom: 28px;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px 24px 32px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f5f5f5;
  color: #444;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.auth-tab:hover {
  background: #ebebeb;
}

.auth-tab.active {
  background: #111;
  border-color: #111;
  color: #fff;
  font-weight: 600;
}

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

.auth-form label {
  margin-top: 8px;
  color: #333;
  font-size: 14px;
}

.auth-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 64px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #b0b0b0;
  cursor: pointer;
}

.password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle:hover {
  color: #888;
  background: #f7f7f7;
}

.auth-form input:focus {
  outline: 1px solid #999;
  outline-offset: 0;
}

.auth-submit {
  width: 100%;
  margin-top: 16px;
  margin-bottom: 0;
  background: #111;
  border-color: #111;
  color: #fff;
}

.auth-submit:hover {
  background: #333;
  border-color: #333;
}

.form-message {
  min-height: 20px;
  margin: 4px 0 0;
  color: #d32f2f;
  font-size: 14px;
}

.form-message.success {
  color: #2e7d32;
}

.hidden {
  display: none;
}

.forgot-link {
  margin-top: 12px;
  padding: 0;
  border: none;
  background: none;
  color: #555;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}
