/* =====================================================
   Magic Link – Formular Styles
   ===================================================== */

.ml-container {
    text-align: left;
    padding: 30px;
    max-width: 560px;
    border: 3px solid #f2f2f2;
    border-radius: 6px;
    margin: 30px auto;
    background: #fff;
}

/* Titel */
.ml-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 24px;
    font-weight: 700;
    color: #e02b20;
}
.ml-subtitle {
    margin-top: 0;
    margin-bottom: 24px;
    color: #888;
    font-size: 14px;
}

/* Felder */
.ml-field {
    margin-bottom: 16px;
}
.ml-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.ml-field input[type="text"],
.ml-field input[type="email"],
.ml-field input[type="tel"],
.ml-field input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    color: #363636;
    transition: border-color .2s ease;
    background: #fafafa;
}
.ml-field input:focus {
    outline: none;
    border-color: #e02b20;
    background: #fff;
}

/* Zwei Spalten */
.ml-row {
    display: flex;
    gap: 12px;
}
.ml-row .ml-field {
    flex: 1;
}

/* Pflicht / Optional */
.ml-required {
    color: #e02b20;
    margin-left: 2px;
}
.ml-optional {
    color: #aaa;
    font-weight: 400;
    font-size: 12px;
}

/* Passwort-Toggle bereits vorhanden, nur Breite sicherstellen */
.ml-field--password .pp-input-wrap {
    width: 100%;
}
.ml-field--password .pp-input-wrap input {
    width: 100%;
    box-sizing: border-box;
}

/* Consent */
.ml-consent-wrap {
    margin: 4px 0 0 !important;
}

/* Submit */
.ml-submit {
    width: 100%;
    margin-top: 8px;
}

/* Hint unter Submit */
.ml-hint {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}
.ml-hint .fa {
    margin-right: 4px;
}

/* Fehlermeldung */
.ml-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fff5f5;
    border: 1px solid #f5c6c6;
    border-radius: 4px;
    padding: 12px 16px;
    color: #c0392b;
    font-size: 14px;
    margin-bottom: 20px;
}
.ml-error .fa {
    margin-top: 4px;
    flex-shrink: 0;
}

/* Erfolgsmeldung */
.ml-success {
    text-align: center;
    padding: 10px 0;
}
.ml-success .fa-check-circle {
    font-size: 48px;
    color: #27ae60;
    margin-bottom: 16px;
}
.ml-success h2 {
    margin-top: 0;
    font-size: 22px;
    color: #363636;
}
.ml-success p {
    color: #656565;
    font-size: 15px;
    line-height: 1.6;
}
.ml-success-hint {
    font-size: 13px !important;
    color: #aaa !important;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 480px) {
    .ml-row {
        flex-direction: column;
        gap: 0;
    }
    .ml-container {
        padding: 20px 16px;
        margin: 0;
        border-radius: 0;
        border-width: 3px 0 0 0;
    }
}
