/* ==========================================================
   Dunkles UI-Theme – angelehnt an das Claude.ai Interface
   ========================================================== */

:root {
  --bg: #131313;
  --bg-elevated: #1c1c1c;
  --bg-card: #1a1a1a;
  --border: #2c2c2c;
  --border-hover: #3a3a3a;
  --text: #ececec;
  --text-muted: #9b9b9b;
  --text-faint: #6b6b6b;
  --accent: #da7756;
  --accent-hover: #c8674a;
  --accent-soft: rgba(218, 119, 86, 0.12);
  --danger: #e5484d;
  --success: #4caf7d;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(218, 119, 86, 0.06), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(218, 119, 86, 0.05), transparent 40%);
}

.auth-wrapper {
  width: 100%;
  max-width: 400px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #131313;
  font-size: 14px;
  letter-spacing: -0.5px;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}

.card h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text);
}

.card .subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 26px;
  line-height: 1.5;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  color: var(--text);
  font-family: var(--font);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field input::placeholder {
  color: var(--text-faint);
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: #202020;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--text-faint);
  font-size: 12px;
}

.btn {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #191410;
  margin-top: 6px;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--text-faint);
  font-size: 12px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.foot-links {
  text-align: center;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.foot-links a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.foot-links a:hover {
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 18px;
}

.back-link:hover {
  color: var(--text);
}

.alert {
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 13px;
  margin-bottom: 18px;
  line-height: 1.5;
  border: 1px solid transparent;
}

.alert-error {
  background: rgba(229, 72, 77, 0.1);
  border-color: rgba(229, 72, 77, 0.3);
  color: #f28b8e;
}

.alert-success {
  background: rgba(76, 175, 125, 0.1);
  border-color: rgba(76, 175, 125, 0.3);
  color: #7fd4a8;
}

.page-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
  color: var(--text-faint);
}
