/* ============================================================
 * MatLuk FotoChallenge — Magic-Code-Login (Iter V.6)
 *
 * Aufklappbare Sektion fuer den Code-Login-Fallback.
 * Wird beim Login angeboten als zweiter Weg neben dem Magic-Link.
 * ============================================================ */

.magic-code-details {
    margin: 16px 0 0;
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    border-radius: 12px;
    overflow: hidden;
    background: rgba(3, 215, 226, 0.03);
}

.magic-code-details > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}
.magic-code-details > summary::-webkit-details-marker {
    display: none;
}
.magic-code-details > summary::marker {
    display: none;
}
.magic-code-details > summary:hover {
    background: rgba(3, 215, 226, 0.06);
}

.magic-code-summary-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.magic-code-summary-text {
    flex: 1;
    min-width: 0;
}

.magic-code-summary-text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.magic-code-summary-text small {
    display: block;
    font-size: 12px;
    color: var(--text-dim, #9ca3af);
    line-height: 1.3;
}

.magic-code-summary-arrow {
    font-size: 22px;
    color: var(--text-dim, #9ca3af);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.magic-code-details[open] .magic-code-summary-arrow {
    transform: rotate(90deg);
}

.magic-code-form {
    padding: 0 16px 16px;
    margin: 0;
}

.magic-code-hint {
    font-size: 13px;
    color: var(--text-dim, #9ca3af);
    margin: 0 0 12px;
    line-height: 1.4;
}

#code_input {
    /* Code besser lesbar */
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 22px;
    letter-spacing: 4px;
    text-align: center;
    font-weight: 700;
}

/* Light-Mode */
[data-theme="light"] .magic-code-details {
    background: rgba(3, 215, 226, 0.05);
    border-color: rgba(3, 215, 226, 0.2);
}
[data-theme="light"] .magic-code-details > summary:hover {
    background: rgba(3, 215, 226, 0.10);
}
