/* =========================================================
   AYEO AUTH
   ========================================================= */

.auth-shell {
  width: 100%;
  margin: 24px 0 56px;
}

.auth-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  color: var(--ayeo-grey);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.auth-tab + .auth-tab {
  border-left: 0;
}

.auth-tab--active {
  position: relative;
  z-index: 2;
  border-bottom-color: #ffffff;
  background: #ffffff;
  color: var(--text);
}

.auth-panel {
  margin-top: -1px;
  padding: 62px 48px 70px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.auth-form {
  width: min(100%, 960px);
  margin: 0 auto;
}

.auth-form--login {
  width: min(100%, 560px);
}

.auth-field {
  margin-bottom: 24px;
}

.auth-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.auth-field input {
  min-height: 50px;
  border-color: #d6d6d6;
}

.auth-field input:focus {
  border-color: var(--ayeo-blue);
}

/* Fehler direkt am betroffenen Feld */
.auth-field--error input {
  border-color: #8f1d24 !important;
}

.auth-field--error input:focus {
  border-color: #8f1d24 !important;
  box-shadow: 0 0 0 2px rgba(143, 29, 36, 0.12) !important;
}

.auth-field-error {
  margin-top: 7px;
  color: #8f1d24;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.auth-field-error--checkbox {
  margin-left: 30px;
}

.auth-privacy {
  margin-top: 8px;
}

.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ayeo-grey);
  line-height: 1.45;
  cursor: pointer;
}

.auth-checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ayeo-blue);
}

.auth-checkbox a,
.auth-forgot {
  color: var(--ayeo-blue);
  text-decoration: none;
}

.auth-checkbox a:hover,
.auth-checkbox a:focus,
.auth-forgot:hover,
.auth-forgot:focus {
  text-decoration: underline;
}

.auth-checkbox--compact {
  align-items: center;
}

.auth-checkbox--compact input {
  margin-top: 0;
}

.auth-login-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-top: 4px;
}

.auth-submit {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.auth-submit-button {
  width: min(100%, 320px);
  min-height: 54px;
  font-size: 1rem;
  font-weight: 400;
}

.auth-message {
  width: min(100%, 960px);
  margin: 0 auto 28px;
  padding: 12px 16px;
  border-radius: var(--radius-small);
}

.auth-message ul {
  margin: 0;
  padding-left: 20px;
}

.auth-message--error {
  background: #fff1f2;
  border: 1px solid var(--ayeo-error);
  color: #7a1f23;
}

.auth-message--success {
  background: #f0f7ef;
  border: 1px solid var(--ayeo-success);
  color: #245629;
}

.auth-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 768px) {
  .auth-shell {
    margin-top: 8px;
  }

  .auth-tabs {
    width: 100%;
  }

  .auth-tab {
    flex: 1 1 50%;
    justify-content: center;
    min-height: 48px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .auth-panel {
    padding: 34px 18px 42px;
  }

  .auth-form,
  .auth-form--login {
    width: 100%;
  }

  .auth-field {
    margin-bottom: 20px;
  }

  .auth-field input {
    min-height: 48px;
  }

  .auth-login-options {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .auth-submit {
    margin-top: 28px;
  }

  .auth-submit-button {
    width: 100%;
  }
}


/* =========================================================
   AYEO AUTH – Zusatzseiten
   Passwort vergessen / zurücksetzen / bestätigen / E-Mail prüfen
   ========================================================= */

.auth-panel--narrow {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.auth-page-title {
  margin: 0 0 18px;
  font-family: "Comfortaa", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
}

.auth-intro {
  margin: 0 0 28px;
  color: var(--ayeo-grey);
  line-height: 1.55;
}

.auth-back {
  margin-top: 24px;
  text-align: center;
}

.auth-back a {
  color: var(--ayeo-blue);
  text-decoration: none;
}

.auth-back a:hover,
.auth-back a:focus {
  text-decoration: underline;
}

.auth-actions-inline {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.auth-actions-inline form {
  margin: 0;
}

.auth-button-secondary {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--ayeo-blue);
  border-radius: var(--radius-small);
  background: #fff;
  color: var(--ayeo-blue);
  font: inherit;
  cursor: pointer;
}

.auth-button-secondary:hover,
.auth-button-secondary:focus {
  opacity: 0.8;
}

.auth-message--info {
  background: #f3f7f8;
  border: 1px solid #c8d9dd;
  color: #365861;
}

@media (max-width: 768px) {
  .auth-panel--narrow {
    max-width: none;
  }

  .auth-actions-inline {
    flex-direction: column;
  }

  .auth-actions-inline form,
  .auth-actions-inline button,
  .auth-actions-inline .ayeo-button {
    width: 100%;
  }
}
