/* =============================================================================
   ctr_accounts — konsolidierte App-CSS
   Vereint login.css, password_change.css, password_reset.css, profile.css
   in eine app-lokale Datei (siehe PR2/PR3 Konsolidierungs-Pattern).
   Namespace: .base-* und .password-*, .profile-* bleiben identisch mit
   vorherigen Klassennamen, um Markup-Breaks zu vermeiden.
============================================================================= */

/* -----------------------------------------------------------------------------
   Layout-Container & Card (Login, Password-Reset, Password-Change, Profil)
----------------------------------------------------------------------------- */
.base-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  padding: 1rem;
}

.base-card {
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1), 0 0 15px rgba(255, 255, 255, 0.3);
  width: 100%;
  max-width: 380px;
  box-sizing: border-box;
}

/* Weiter-Variante für Profile/Password-Change */
.base-card--md {
  max-width: 640px;
}

.base-header {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  color: #333;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  word-wrap: break-word;
}

/* -----------------------------------------------------------------------------
   Form-Gruppen & Eingabefelder
----------------------------------------------------------------------------- */
.base-form-group {
  margin-bottom: 14px;
}

.base-form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  color: #555;
  font-size: 0.9rem;
}

.base-form-group input,
.base-form-group select,
.base-form-group textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9rem;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.base-form-group input:focus,
.base-form-group select:focus,
.base-form-group textarea:focus {
  border-color: #0768af;
  outline: none;
  box-shadow: 0 0 5px rgba(59, 130, 246, 0.5);
}

/* -----------------------------------------------------------------------------
   Fehlermeldungen
----------------------------------------------------------------------------- */
.base-alert-danger {
  background-color: #fee2e2;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.4);
}

/* Password-Change/Reset: dickerer Rahmen, größerer Abstand */
.password-change-card .base-alert-danger,
.password-reset-card .base-alert-danger {
  font-size: 0.85rem;
  margin-bottom: 10px;
  border: 2px solid #dc2626;
}

/* -----------------------------------------------------------------------------
   Primär-Button (Login & Reset)
----------------------------------------------------------------------------- */
.base-button {
  width: 100%;
  padding: 10px 0;
  background-color: #0768af;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.4), 0 0 10px rgba(255, 255, 255, 0.25);
}

.base-button:hover {
  background-color: #055188;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.6), 0 0 15px rgba(255, 255, 255, 0.35);
}

/* Secondary-Variante: weißer Hintergrund, graue Border */
.base-button--secondary {
  background: #fff;
  color: #555;
  border: 1px solid #ccc;
  text-decoration: none;
  transition: background var(--ctr-transition, 0.2s ease),
              border-color var(--ctr-transition, 0.2s ease),
              color var(--ctr-transition, 0.2s ease);
}

.base-button--secondary:hover {
  background: #f5f5f5;
  color: var(--ctr-primary, #1a365d);
  border-color: var(--ctr-primary, #1a365d);
  box-shadow: none;
}

/* In Grid-Kontexten (Password-Reset/Change) Full-Width aufheben, Höhe vereinheitlichen */
.password-reset-actions .base-button,
.password-change-actions .base-button,
.profile-actions .base-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  text-decoration: none;
}

/* -----------------------------------------------------------------------------
   Login-spezifisch
----------------------------------------------------------------------------- */
.login-actions {
  margin-top: 1.2rem;
}

.login-footer-link {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.login-footer-link a {
  color: #0768af;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.login-footer-link a:hover {
  color: #055188;
  text-decoration: underline;
}

/* -----------------------------------------------------------------------------
   Password-Hints (Reset & Change)
----------------------------------------------------------------------------- */
.password-hints {
  background: #f5f8ff;
  border: 1px solid #dce5f4;
  border-radius: 0.65rem;
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.95rem;
  color: #334155;
  font-size: 0.9rem;
}

.password-hints ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.password-hints--reset {
  margin: 14px 0;
}

/* -----------------------------------------------------------------------------
   Password-Reset Actions (Grid)
----------------------------------------------------------------------------- */
.password-reset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* -----------------------------------------------------------------------------
   Password-Change spezifisch
----------------------------------------------------------------------------- */
.password-change-card {
  max-width: 640px;
  margin: 0 auto;
}

.password-change-card .base-form-group {
  margin-bottom: 0.95rem;
}

.password-change-card input {
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #ced6e5;
  border-radius: 0.6rem;
  transition: border-color var(--ctr-transition, 0.2s ease),
              box-shadow var(--ctr-transition, 0.2s ease);
}

.password-change-card input:focus {
  outline: none;
  border-color: var(--ctr-primary, #1a365d);
  box-shadow: 0 0 0 0.2rem rgba(26, 54, 93, 0.15);
}

.password-change-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.password-change-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.password-change-btn--secondary {
  background: #fff;
  color: #7a1f1f;
  border: 1px solid #d8b4b4;
}

.password-change-btn--secondary:hover {
  background: #fff5f5;
  border-color: #cf9f9f;
  color: #611818;
  box-shadow: none;
}

/* -----------------------------------------------------------------------------
   Profil-Actions (Grid 3-spaltig)
----------------------------------------------------------------------------- */
.profile-actions {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem !important;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--ctr-primary, #1a365d);
  background: var(--ctr-primary, #1a365d);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--ctr-transition, 0.2s ease),
              border-color var(--ctr-transition, 0.2s ease),
              box-shadow var(--ctr-transition, 0.2s ease);
}

.profile-action-btn:hover {
  background: var(--ctr-primary-light, #2a4a7d);
  border-color: var(--ctr-primary-light, #2a4a7d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.profile-action-btn--secondary {
  background: #fff;
  color: #7a1f1f;
  border-color: #d8b4b4;
}

.profile-action-btn--secondary:hover {
  background: #fff5f5;
  color: #611818;
  border-color: #cf9f9f;
  box-shadow: 0 4px 12px rgba(145, 42, 42, 0.15);
}

/* -----------------------------------------------------------------------------
   Responsive
----------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .profile-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .password-change-actions,
  .password-reset-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .base-card {
    padding: 15px 20px;
    max-width: 320px;
  }

  .base-header {
    font-size: 1.2rem;
  }
}
