/* css/auth.css – ZockSofa Auth + Global Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  min-height: 100vh;
}

/* Nur Auth-Seiten (login, register, forgot, reset, verify) zentrieren */
body.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── Globaler Header ────────────────────────────────── */
.dash-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 0 24px;
  height: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-sizing: border-box;
  width: 100%;
}

.dash-logo {
  font-weight: 900;
  font-size: 1.4rem;
  color: #e63950;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.dash-nav a {
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  white-space: nowrap;
}
.dash-nav a:hover { color: #e63950; }
.dash-user { font-weight: 700; font-size: 0.9rem; color: #555; white-space: nowrap; }
.dash-logout { color: #999 !important; }

/* ─── Auth Styles ────────────────────────────────────── */
.auth-wrapper {
  width: 100%;
  padding: 24px 16px;
  display: flex;
  justify-content: center;
}

.auth-box {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  display: block;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #e63950;
  text-decoration: none;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

h1 {
  font-size: 1.3rem;
  color: #111;
  margin-bottom: 20px;
  text-align: center;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 14px;
}

form input {
  padding: 10px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

form input:focus { border-color: #e63950; }

form button {
  width: 100%;
  padding: 12px;
  background: #e63950;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}

form button:hover { background: #c8303f; }

.error-list {
  background: #fff0f0;
  border: 1px solid #f5c2c7;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  color: #b02030;
  font-size: 0.875rem;
  list-style: none;
}
.error-list li { margin-bottom: 4px; }
.error-list li:last-child { margin-bottom: 0; }

.success-msg {
  background: #f0fff4;
  border: 1px solid #b7ebc3;
  border-radius: 8px;
  padding: 12px 16px;
  color: #1a7b34;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.auth-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.auth-links a {
  color: #e63950;
  text-decoration: none;
  font-size: 0.875rem;
}
.auth-links a:hover { text-decoration: underline; }

.pw-strength-bar {
  height: 5px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 6px 0 4px;
  overflow: hidden;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  .dash-header { padding: 0 14px; }
  .dash-nav { gap: 12px; overflow-x: auto; }
  .dash-nav a, .dash-user { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
}
