/* Container */
.container.ast-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.brief-login {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 900px;
  width: 100%;
  margin: 48px auto;
  border: none;
}

.brief-login-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #e5e5e5, 0 2px 8px rgba(0,0,0,0.04);
  padding: 48px 48px 36px 48px;
  max-width: 480px;
  margin: 0 auto;
}

/* Überschrift (optional, falls du eine h2 o.ä. davor hast) */
.brief-login-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
}

/* Beschreibungstext (optional) */
.brief-login-desc {
  color: #555;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* Formularzeilen */
.brief-form-row {
  margin-bottom: 18px;
}

/* Labels */
.brief-login label {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  color: #222;
  font-size: 1rem;
}

/* Pflicht-Sternchen */
.brief-login label span {
  color: #175c4c;
  margin-left: 2px;
  font-weight: bold;
}

/* Input-Felder */
.brief-form-field {
  width: 100%;
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 9px 12px;
  margin-bottom: 0;
  font-size: 1rem;
  background: #fafafa;
  box-sizing: border-box;
  transition: border 0.2s;
}
.brief-form-field:focus {
  border: 1.5px solid #175c4c;
  outline: none;
}

/* Submit-Button */
.brief-form-submit {
  background: #175c4c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 10px 32px;
  margin-top: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  width: 100%;
}
.brief-form-submit:hover {
  background: #12483a;
}

/* Forgot Password Link */
.brief-login-forgot {
  text-align: center;
  margin-top: 16px;
}

.brief-login-forgot a {
  color: #175c4c;
  font-weight: 500;
  text-decoration: underline;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.brief-login-forgot a:hover {
  color: #12483a;
}

/* Error Messages */
.brief-login-error,
.brief-form-errors {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #ffcdd2;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

.brief-form-errors {
  text-align: left;
}

.brief-form-errors ul {
  margin: 0;
  padding-left: 20px;
}

.brief-form-errors li {
  margin-bottom: 4px;
}

/* Success Messages */
.brief-form-success {
  background: #e8f5e8;
  color: #2e7d32;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: 1px solid #c8e6c9;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Lost Password Page */
.brief-lost-password {
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 900px;
  width: 100%;
  margin: 48px auto;
  border: none;
}

.brief-lost-password-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #222;
  text-align: center;
}

.brief-lost-password-desc {
  color: #555;
  margin-bottom: 20px;
  font-size: 1rem;
  text-align: center;
}

.brief-lost-password-form {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #e5e5e5, 0 2px 8px rgba(0,0,0,0.04);
  padding: 48px 48px 36px 48px;
  max-width: 480px;
  margin: 0 auto;
}

.brief-lost-password-links {
  text-align: center;
  margin-top: 24px;
}

.brief-lost-password-links a {
  color: #175c4c;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
}

.brief-lost-password-links a:hover {
  color: #12483a;
}

/* Registrierung-Link */
.brief-form-col-submit a {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.97rem;
  color: #175c4c;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 2px;
}

/* Optional: Abstand zwischen Button und Link */
.brief-form-col-submit {
  text-align: center;
} 

/* Registrierung: Zentrierter Container und 2-Spalten-Grid */
/* .brief-register {
  background: #f7f7f7;
  border-radius: 12px;
  padding: 40px 32px 32px 32px;
  max-width: 600px;
  margin: 48px auto 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.brief-form {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brief-form-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 18px;
  color: #222;
  width: 100%;
  text-align: left;
}

.brief-form-grid {
  width: 100%;
  max-width: 480px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
  margin-bottom: 18px;
}

.brief-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brief-form label {
  font-size: 1rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 2px;
}

.brief-form label span {
  color: #175c4c;
  margin-left: 2px;
  font-weight: bold;
}

.brief-form-field, .brief-form select {
  border: 1px solid #bbb;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s;
}
.brief-form-field:focus, .brief-form select:focus {
  border: 1.5px solid #175c4c;
  outline: none;
}

/* Password Requirements */
.password-requirements {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
  line-height: 1.4;
  background: #f9f9f9;
  padding: 8px;
  border-radius: 4px;
  border-left: 3px solid #ddd;
}

.password-requirements strong {
  color: #333;
}

/* Login Link in Registration */
.brief-register-login {
  text-align: center;
  margin-top: 24px;
}

.brief-register-login p {
  margin: 0;
  color: #666;
}

.brief-register-login a {
  color: #175c4c;
  font-weight: 500;
  text-decoration: underline;
  transition: color 0.2s;
}

.brief-register-login a:hover {
  color: #12483a;
}

/* Checkbox und Datenschutz */
.brief-form-checkbox-row {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0 0;
}

.brief-form-checkbox-row label {
  font-size: 0.97rem;
  font-weight: 400;
  color: #888;
  margin-bottom: 0;
}

.brief-form-checkbox-row a {
  color: #175c4c;
  text-decoration: underline;
}

/* Button */
.brief-form-submit {
  width: 100%;
  max-width: 480px;
  background: #175c4c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 0;
  margin-top: 18px;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
}
.brief-form-submit:disabled {
  background: #888;
}

/* Pflichtfeld-Hinweis */
.brief-form-required {
  width: 100%;
  max-width: 480px;
  font-size: 0.92rem;
  color: #bbb;
  margin-top: 8px;
  margin-bottom: 0;
  text-align: left;
}

/* Responsive */
@media (max-width: 700px) {
  .brief-register {
    padding: 24px 8px;
    max-width: 98vw;
  }
  .brief-form, .brief-form-grid, .brief-form-checkbox-row, .brief-form-submit, .brief-form-required {
    max-width: 100vw;
  }
  .brief-form-grid {
    grid-template-columns: 1fr;
    gap: 14px 0;
  }
} 

/* Error message styling */
.brief-login-error {
  background: #ffebee !important;
  color: #c62828 !important;
  padding: 12px !important;
  margin-bottom: 20px !important;
  border-radius: 4px !important;
  border: 1px solid #ffcdd2 !important;
  text-align: center !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.brief-login-error strong {
  font-weight: bold !important;
  color: #c62828 !important;
}

.brief-login-error em {
  font-style: italic !important;
}

.brief-login-error a {
  color: #c62828 !important;
  text-decoration: underline !important;
}

.brief-login-error a:hover {
  text-decoration: none !important;
}

.brief-login-error p {
  margin: 0 !important;
  padding: 0 !important;
}

.brief-login-error br {
  display: block !important;
  content: "" !important;
  margin: 5px 0 !important;
}

/* Additional HTML tag styling for error messages */
.brief-login-error code {
  background: rgba(198, 40, 40, 0.1) !important;
  padding: 2px 4px !important;
  border-radius: 3px !important;
  font-family: monospace !important;
  font-size: 0.85em !important;
}

.brief-login-error mark {
  background: rgba(198, 40, 40, 0.2) !important;
  padding: 1px 3px !important;
  border-radius: 2px !important;
}

.brief-login-error small {
  font-size: 0.8em !important;
  opacity: 0.9 !important;
}

.brief-login-error ul, .brief-login-error ol {
  margin: 8px 0 !important;
  padding-left: 20px !important;
  text-align: left !important;
}

.brief-login-error li {
  margin: 4px 0 !important;
} 