/* ── Mein addicted – Auth-Modul ─────────────────────────────────── */

/* Layout-Wrapper */
.auth-wrap {
    max-width: 480px;
    margin: 30px auto 50px;
    padding: 0 16px;
}

/* Card */
.auth-card {
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,.1);
    overflow: hidden;
    margin-bottom: 16px;
}

/* Roter Header-Balken (analog zu .redBalken) */
.auth-card-header {
    background: #C10925;
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.auth-card-header h1,
.auth-card-header h2 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.auth-card-header .auth-header-icon {
    font-size: 1.2rem;
    opacity: .9;
}

/* Card-Inhalt */
.auth-card-body {
    padding: 24px 20px;
}

/* Benutzer-Info-Zeile */
.auth-user-bar {
    padding: 10px 20px;
    background: #f5f6f7;
    border-bottom: 1px solid #e8e8e8;
    font-size: .85rem;
    color: #666;
}
.auth-user-bar strong {
    color: #333;
}

/* Formular */
.auth-field {
    margin-bottom: 14px;
    overflow: hidden; /* clearfix für TYPO3-Floats */
}
/* TYPO3-Override: neuereintrag.css setzt float:left auf label und input */
.auth-field label,
.auth-card input,
.auth-card select {
    float: none !important;
}
.auth-field label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px;
    width: auto !important;
}
.auth-field input[type="text"],
.auth-field input[type="email"],
.auth-field input[type="password"] {
    display: block !important;
    width: 100% !important;
    height: 42px;
    border: 1px solid #bdc3c7;
    border-radius: 0;
    padding: 0 12px;
    margin: 0;
    font-size: .95rem;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color .15s;
}
.auth-field input:focus {
    outline: none;
    border-color: #C10925;
    box-shadow: 0 0 0 2px rgba(193,9,37,.08);
}
.auth-field .auth-hint {
    font-size: .75rem;
    color: #999;
    margin-top: 3px;
    clear: both;
}

/* Checkbox */
.auth-check {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: .88rem;
    color: #444;
    cursor: pointer;
}
.auth-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #C10925;
}

/* Buttons */
.auth-btn {
    width: 100%;
    height: 42px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .15s;
}
.auth-btn:hover {
    background: #C10925;
}
.auth-btn-secondary {
    background: #7f8c8d;
}
.auth-btn-secondary:hover {
    background: #636e72;
}

/* Nachrichten */
.auth-msg {
    padding: 10px 14px;
    border-radius: 0;
    margin-bottom: 14px;
    font-size: .88rem;
    line-height: 1.5;
}
.auth-msg-error {
    background: #fdf2f2;
    border: 1px solid #e74c3c;
    color: #c0392b;
}
.auth-msg-success {
    background: #f0fdf4;
    border: 1px solid #27ae60;
    color: #1e8449;
}
.auth-msg-info {
    background: #f0f4ff;
    border: 1px solid #3498db;
    color: #1a5276;
}

/* Links unter Formularen */
.auth-links {
    margin-top: 14px;
    text-align: center;
    font-size: .84rem;
    color: #666;
}
.auth-links a {
    color: #C10925;
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover {
    text-decoration: underline;
}

/* Trennlinie */
.auth-sep {
    text-align: center;
    color: #bbb;
    font-size: .78rem;
    margin: 12px 0;
    position: relative;
}
.auth-sep::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e8e8e8;
}
.auth-sep span {
    background: #fff;
    padding: 0 12px;
    position: relative;
}

/* ── Dashboard ──────────────────────────────────────────────────── */

.auth-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #e8e8e8;
}
.auth-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    background: #fff;
    text-decoration: none;
    transition: background .12s;
    min-height: 90px;
}
.auth-tile:hover {
    background: #fdf2f2;
    text-decoration: none;
}
.auth-tile-icon {
    font-size: 1.7rem;
    margin-bottom: 7px;
    display: block;
    line-height: 1;
}
.auth-tile-label {
    font-size: .72rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .07em;
    text-align: center;
}
.auth-tile:hover .auth-tile-label {
    color: #C10925;
}
/* Logout-Tile als POST-Form-Button (kein Link) */
button.auth-tile {
    cursor: pointer;
    width: 100%;
    border: none;
    font-family: inherit;
    background: #fff;
}
button.auth-tile:hover {
    background: #fdf2f2;
    text-decoration: none;
}

.auth-tile-logout .auth-tile-icon,
.auth-tile-logout .auth-tile-label {
    color: #999;
}
.auth-tile-logout:hover .auth-tile-label {
    color: #c0392b;
}

/* ── Avatar ─────────────────────────────────────────────────────── */

/* Dashboard: Avatar-Sektion über den Tiles */
.auth-avatar-section {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eee;
}
.auth-avatar-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-avatar-name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

/* Avatar-Kreis */
.auth-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ddd;
    background: #f5f5f5;
}
.auth-avatar-md {
    width: 80px;
    height: 80px;
}
.auth-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.auth-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #aaa;
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 50%;
    box-sizing: border-box;
}

/* CTA-Links unter dem Avatar */
.auth-avatar-cta {
    font-size: .8rem;
    color: #888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.auth-avatar-cta:hover { color: #C10925; }

/* Noch kein Bild – auffälliger CTA */
.auth-avatar-cta-add {
    background: #fff3e0;
    color: #C10925;
    border: 1px solid #C10925;
    border-radius: 0;
    padding: 4px 10px;
    font-weight: 600;
    font-size: .78rem;
}
.auth-avatar-cta-add:hover {
    background: #C10925;
    color: #fff;
}

/* Konto-Seite: Avatar-Upload-Zeile */
.auth-account-section {
    padding: 16px 0 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
}
.auth-section-label {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #555;
    margin: 0 0 10px;
}
.auth-avatar-upload-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.auth-avatar-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-btn-secondary {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    cursor: pointer;
    display: inline-block;
    padding: 10px 18px;
    border-radius: 0;
    font-size: .85rem;
    font-weight: 600;
    text-align: center;
    transition: background .12s;
}
.auth-btn-secondary:hover {
    background: #e8e8e8;
    border-color: #aaa;
}

/* Konto-Einstellungen – zwei Sektionen nebeneinander */
.auth-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 520px) {
    .auth-account-grid {
        grid-template-columns: 1fr;
    }
    .auth-dashboard {
        grid-template-columns: 1fr 1fr;
    }
    .auth-wrap {
        padding: 0 8px;
        margin-top: 16px;
    }
}
