.auth-main {
  padding: 60px 30px;
  display: flex;
  justify-content: center;
}

.profile-main {
  padding: 40px 36px;
  max-width: 1400px;
  margin: 0 auto;
}

.profile-card {
  margin-bottom: 40px;
}

.favorites-section h2 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 18px;
}

.history-section {
  margin-top: 40px;
}

.history-section h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.history-clear-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.history-clear-btn:hover {
  border-color: #e08080;
  color: #e08080;
}

.history-remove-btn {
  font-size: 13px;
}

.auth-box {
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-box h2 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
}

.auth-hint {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.auth-box label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
}

.auth-box input {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.auth-box button {
  width: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #17130c;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
  transition: filter 0.15s ease, transform 0.1s ease;
}

.auth-box button:hover {
  filter: brightness(1.08);
}

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

.auth-box .switch-link {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.auth-box .switch-link a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.auth-box .switch-link a:hover {
  text-decoration: underline;
}

#auth-message {
  margin-top: 12px;
  font-size: 13px;
  color: #e08080;
  min-height: 18px;
}

.profile-row {
  margin-bottom: 16px;
  font-size: 14px;
}

.profile-row span:first-child {
  color: var(--text-dim);
}

#logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #e08080;
  color: #e08080;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

#logout-btn:hover {
  background: #e08080;
  color: var(--bg);
}
