/* Validierung */
.input-group{
    position: relative;
    display: flex; 
    align-items: center;
    margin-bottom: 15px;
}
.validation-icon{
    font-size: 1.4em; 
    margin-left: 10px; 
    transition: color 0.3s;
}
/* KORREKTUR: Cursor hinzugefügt, um Klickbarkeit anzuzeigen */
.password-toggle-icon{
    font-size: 1.4em;
    cursor: pointer; 
    color: #4a403f;
    margin-left: 10px;
}
/* Farben für die Zustände */
.validation-icon.invalid{
    color: #dc3545; /* Rot für ungültig */
}
.validation-icon.valid {
    color: #28a745; /* Grün für gültig */
}
/* Wichtig: Stellt sicher, dass das Input-Feld neben dem Icon Platz lässt */
.input-group .modern-input{
    flex-grow: 1;
}
/* Styling für meldungen */
.errormsg, .error-message{
    background: darkred;
}
.donemsg{
    background: #1e3d1c;
}
.error-message{
    display: none; /* Standardmäßig versteckt */
}
.donemsg, .errormsg, .error-message{
    width: min(420px, 92%);
    min-height: unset;
    height: auto;
    margin: 24px auto;
    padding: 16px 18px;
    box-sizing: border-box;
    text-align: center;
    color: #f5f5c8;
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 600;
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    -moz-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.donemsg{
    color: #e8f5e9;
    border: 1px solid #5cb85c;
    box-shadow: 0 2px 10px rgba(92, 184, 92, 0.35);
}
.errormsg{
    color: #fff;
    border: 1px solid #771c17;
}