/* ============================================================
   forms.css – BAERLIM-USER-FRONTEND
   Formular-Styles für alle Auth- und User-Seiten
   ============================================================ */

/* ── Typographie ── */
.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.auth-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ── Form Group ── */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  font-weight: 500;
  margin-bottom: 7px;
}

.form-helper {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 5px;
  line-height: 1.4;
}

/* ── Inputs ── */
.form-input,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-family: Arial, sans-serif;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-sizing: border-box;
  color-scheme: dark;
}

.form-input::placeholder { color: rgba(255,255,255,0.30); }

.form-input:focus,
.form-select:focus {
  border-color: #1EC11E;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(30,193,30,0.18);
}

/* Autofill Fix */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(20,20,20,0.95) inset !important;
  -webkit-text-fill-color: #fff !important;
  border-color: rgba(255,255,255,0.14) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Textarea */
textarea.form-input {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ── Select – dunkles Dropdown ── */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #111 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.5)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-select option {
  background-color: #111 !important;
  color: #fff !important;
  font-size: 14px;
  padding: 8px 14px;
}
.form-select option:hover,
.form-select option:focus,
.form-select option:checked {
  background-color: #1EC11E !important;
  color: #fff !important;
}

/* Direkte select-Elemente (ohne Klasse) ebenfalls dunkel */
select {
  color-scheme: dark;
  background-color: #111;
  color: #fff;
}
select option {
  background-color: #111 !important;
  color: #fff !important;
}

/* ── Form Grid (2 Spalten) ── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ── Passwort-Toggle ── */
.input-wrap {
  position: relative;
}
.input-wrap .form-input {
  padding-right: 46px;
}
.input-toggle {
  position: absolute;
  top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none;
  color: rgba(255,255,255,0.45);
  cursor: pointer; padding: 4px;
  display: flex; align-items: center;
  transition: color 0.14s;
}
.input-toggle:hover { color: rgba(255,255,255,0.90); }
.input-toggle svg { width: 18px; height: 18px; display: block; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.16s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-green {
  background: #1EC11E;
  color: #fff;
  box-shadow: 0 6px 20px rgba(30,193,30,0.30);
}
.btn-green:hover {
  background: #16a916;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(30,193,30,0.38);
}
.btn-green:active { transform: none; }

.btn-gray {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.80);
  border: 1px solid rgba(255,255,255,0.16) !important;
  backdrop-filter: blur(6px);
}
.btn-gray:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: translateY(-1px);
}

.btn--full { width: 100%; }

.btn--sm {
  height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

.btn-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* ── Checkbox / Radio ── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  line-height: 1.5;
}
.form-check input {
  accent-color: #1EC11E;
  width: 16px; height: 16px;
  margin-top: 2px;
  flex-shrink: 0; cursor: pointer;
}
.form-check a { color: #1EC11E; }

/* ── Auth Links ── */
.auth-links {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255,255,255,0.60);
  text-align: center;
  line-height: 1.7;
}
.auth-links a { color: #1EC11E; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }

/* ── Error / Success Messages ── */
.form-error {
  display: none;
  color: #ff7070;
  font-size: 13px;
  margin-top: 6px;
}
.form-error.show { display: block; }

.form-success {
  display: none;
  color: #1EC11E;
  font-size: 13px;
  margin-top: 6px;
}
.form-success.show { display: block; }

/* ── Password Strength Bar ── */
.pw-strength {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  margin-top: 8px;
  overflow: hidden;
}
.pw-strength__bar {
  height: 100%;
  border-radius: 999px;
  width: 0%;
  transition: width 0.25s ease, background 0.25s ease;
}

/* ── CAPTCHA Box ── */
.captcha-box {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  font-size: 14px;
  color: rgba(255,255,255,0.80);
}
.captcha-box input {
  accent-color: #1EC11E;
  width: 16px; height: 16px;
  cursor: pointer;
}
