/* ============================================================
   ACCOUNT — Login, Logout, Registrierung, Passwort
   ============================================================ */

.account_form {
    max-width: 460px;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 10px;
    padding: 15px 20px;
}
.account_form--wide { max-width: 640px; }
.account_form--danger { border-left: 3px solid #e05a3c; }
.account_form--danger h2 { color: #e05a3c; }
.account_form--danger h2::after { background: #e05a3c; }

.account_form h2 {
    margin: 0 0 24px;
    text-align: center;
    color: var(--text-primary);
    font-size: 22px;
    font-weight: 700;
    padding-bottom: 14px;
    position: relative;
}
.account_form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}
.account_form p { color: var(--text-secondary); line-height: 1.6; }

.account_form__hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: -8px;
    margin-bottom: 18px;
}

.toast.alert {
    background: rgba(231,76,60,0.1);
    border: 1px solid rgba(231,76,60,0.35);
    color: #ff8478;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
    text-align: center;
}

/* ---- Split-Layout (Login/Register: Formular | Steam) ---- */
.account_split { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; }
.account_split__col { padding: 0 1.5rem; }
.account_split__col:first-child { padding-left: 0; }
.account_split__divider {
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(224,177,63,0.5) 20%, rgba(224,177,63,0.5) 80%, transparent);
}
.account_split__col--steam {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.steam_icon { color: var(--text-muted); margin-bottom: 16px; }
.account_split__col--steam p { font-size: 13px; color: var(--text-muted); margin: 0 0 18px; }

@media (max-width: 560px) {
    .account_split { grid-template-columns: 1fr; }
    .account_split__divider {
        width: auto;
        height: 1px;
        margin: 1.5rem 0;
        background: linear-gradient(90deg, transparent, rgba(224,177,63,0.5) 20%, rgba(224,177,63,0.5) 80%, transparent);
    }
    .account_split__col { padding: 0; }
}

/* ---- Passwort-Feld mit Sichtbarkeits-Toggle ---- */
.pw_input_wrap { position: relative; }
.pw_input_wrap input { padding-right: 40px; width: 100%; box-sizing: border-box; }
.pw_toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--text-muted); display: flex;
}
.pw_toggle:hover { color: var(--text-primary); }

/* ---- Passwort-Stärkeanzeige ---- */
.pw_strength { display: flex; gap: 4px; margin-top: 8px; }
.pw_strength__bar { height: 3px; flex: 1; border-radius: 2px; background: var(--border-card); transition: background 200ms ease; }
.pw_strength__bar.weak   { background: #e05a3c; }
.pw_strength__bar.medium { background: #e8a44a; }
.pw_strength__bar.strong { background: #5DCAA5; }

.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.field-hint.field-error,
p.field-error { color: #ff8478; }
.field-hint.field-error { }

/* ---- Checkbox-Zeile (z.B. "Angemeldet bleiben") ---- */
.account_checkbox_row { display: flex; align-items: center; gap: 8px; margin: 4px 0 18px; }
.account_checkbox_row input { width: auto; accent-color: var(--accent); }
/* ---- 5-stelliger Aktivierungscode ---- */
.account_checkbox_row label { font-size: 13px; color: var(--text-secondary); }

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 22px 0;
}
.code-inputs input {
    width: 52px !important;
    height: 58px !important;
    padding: 0 !important;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 1px solid var(--border-card);
    background: rgba(0,0,0,0.3);
    color: var(--text-primary);
    transition: border-color var(--transition);
}
.code-inputs input:focus {
    border-color: var(--accent);
    outline: none;
}
@media (max-width: 400px) {
    .code-inputs { gap: 6px; }
    .code-inputs input { width: 42px !important; height: 50px !important; font-size: 20px; }
}

/* ---- Links unterhalb des Formulars ---- */
.auth-links { margin-top: 18px; text-align: center; font-size: 13px; }
.auth-links a { color: var(--accent); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

/* ---- Button-Gruppe (Zurück/Abbrechen + Bestätigen) ---- */
.button-group, .button_group {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* ---- Steam-Button ---- */
.btn-steam {
    margin: 10px 0;
    width: 100%;
    background: #4a3f8c;
    color: #e8e4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #5d4fb0;
    padding: 12px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-sizing: border-box;
    transition: background var(--transition);
}
.btn-steam:hover { background: #5b4ea3; }

.steam_explain {
    list-style: none;
    margin: 16px 0 0;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    text-align: left;
}
.steam_explain li { font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.steam_explain li + li { margin-top: 6px; }

/* ---- Logout ---- */
.logout-form { text-align: center; }
.logout-form h2 { color: #e05a3c; }
.logout-form p { margin-bottom: 20px; }
.logout-form strong { color: var(--text-primary); }

.logout-icon { font-size: 36px; margin-bottom: 10px; display: block; opacity: 0.85; }

.logout-user-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    margin-bottom: 26px;
}
.logout-avatar { width: 36px; height: 36px; border-radius: 5px; object-fit: cover; border: 1px solid var(--border-strong); }
.logout-username { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.reactivate-user-preview {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    margin-bottom: 16px;
}
.reactivate-avatar { width: 36px; height: 36px; border-radius: 5px; object-fit: cover; border: 1px solid var(--border-strong); }
.reactivate-username { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ---- Steam-Registrierung abschließen ---- */
.steamcomplete-preview {
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.steamcomplete-preview__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.steamcomplete-preview__avatar { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); }
.steamcomplete-preview__welcome { color: var(--text-primary); font-size: 24px; }
.steamcomplete-preview__welcome strong { color: var(--accent); }
.steamcomplete-preview__desc { font-size: 18px; color: var(--text-secondary); line-height: 1.5; }

.steamcomplete-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.steamcomplete-fields .form_group { flex: 1; min-width: 240px; }
.steamcomplete-fields ul { margin: 10px 0 0 18px; padding: 0; color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.steamcomplete-note {
    font-size: 15px;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 1px solid var(--border-card);
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.5;
    margin-top: 14px;
}
.steamcomplete-note__title { color: #e8a44a; font-weight: 600; margin-bottom: 6px; }

/* ============================================================
   GERÄTE-VERWALTUNG (devices.php) — al-*
   ============================================================ */
/* ================================================================
   AUTOLOGIN PAGE  –  al-*
================================================================ */

/* ---- NOTICE ---- */
.al-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(224,177,63,0.06);
    border: 1px solid rgba(224,177,63,0.25);
    color: #c8a04a;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 10px;
}
.al-notice svg { flex-shrink: 0; color: #c8a04a; }

/* ---- LIST ---- */
.al-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 900px) { .al-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .al-list { grid-template-columns: 1fr; } }

/* ---- ITEM ---- */
.al-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid #20222f;
    background: #15181f;
    transition: border-color 0.15s, background 0.15s;
    position: relative;
    overflow: hidden;
}

.al-item--current {
    border-color: rgba(93,202,165,0.35);
    background: rgba(93,202,165,0.05);
}

/* Grüne linke Kante für aktuelles Gerät */
.al-item--current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #5DCAA5;
    border-radius: 99px 0 0 99px;
}

@keyframes alFadeOut {
    to { opacity: 0; transform: translateX(8px); max-height: 0; margin: 0; padding: 0; border-width: 0; }
}
.al-item--removing {
    animation: alFadeOut 0.28s ease forwards;
    pointer-events: none;
}

.al-item__icon {
    order: 1;
    font-size: 24px;
    line-height: 1;
    width: 32px;
    text-align: center;
}

.al-item__body {
    order: 3;
    flex: 1 1 100%;
    min-width: 0;
}

.al-item__title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.al-item__device {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.925rem;
}

.al-item__sep {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.al-item__browser {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ---- BADGES ---- */
.al-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.al-badge--current {
    background: rgba(93,202,165,0.15);
    color: #5DCAA5;
    border: 0.5px solid #5DCAA5;
}

.al-badge--warn {
    background: rgba(232,164,74,0.15);
    color: #e8a44a;
    border: 0.5px solid currentColor;
}

/* ---- META DL ---- */
.al-item__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.al-meta-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.al-meta-row dt {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 16px;
}

.al-meta-row dd {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.al-meta--mono { font-family: monospace; letter-spacing: 0.03em; }

.al-meta--warn { color: #e8a44a !important; }
.al-meta--expired { color: #e05a3c !important; }

.al-meta__days {
    opacity: 0.8;
    font-size: 0.8em;
    margin-left: 3px;
}

/* ---- ACTION ---- */
.al-item__action {
    order: 2;
    margin-left: auto;
    flex-shrink: 0;
    display: flex;
    gap: 6px;
}

/* ---- BUTTONS ---- */
.al-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    border: 0.5px solid var(--border);
    cursor: pointer;
    font-family: inherit;
    background: none;
    color: var(--text-primary);
    transition: background 0.12s, opacity 0.12s;
    text-decoration: none;
}
.al-btn:hover   { background: var(--bg-raised); }
.al-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.al-btn--ghost  { background: transparent; }

.al-btn--danger {
    border-color: transparent;
    color: #e05a3c;
}
.al-btn--danger:hover { background: rgba(224,90,60,0.1); }

.al-btn--icon {
    padding: 7px 12px;
}

.al-btn--sm { padding: 5px 11px; font-size: 0.825rem; }

/* ---- EMPTY ---- */
.al-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 48px 24px;
    border-radius: 8px;
    border: 0.5px dashed var(--border-card);
    color: var(--text-muted);
    text-align: center;
    font-size: 0.9rem;
}

.al-btn--muted {
    border-color: transparent;
    color: var(--text-muted);
}
.al-btn--muted:hover {
    background: var(--bg-raised);
    color: var(--text-secondary);
}

/* ---- FLAG ---- */
.al-flag { font-size: 1.1em; margin-right: 2px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 560px) {
    .al-item__action { width: 100%; }
    .al-btn--icon { flex: 1; justify-content: center; }
    .al-meta-row dd { white-space: normal; }
}