/* ============================================================
   OAuth Quick-Login Buttons fuer Login- und Register-Modal
   Brand-Farben aus Anbieter-Guidelines, dunkles Theme matched
   login.css / regis.css.
   ============================================================ */

.oauth-divider {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0 0.25rem 0;
    color: #8b8b8b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'Roboto', Arial, sans-serif;
}

.oauth-divider::before,
.oauth-divider::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4a4a4a 50%, transparent);
}

.oauth-divider span {
    flex: 0 0 auto;
    white-space: nowrap;
}

.oauth-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

/* Register-Modal: 3 Buttons (Steam raus — keine sichere Account-Recovery
   ohne Email) -> 3-spaltig auf Desktop, 1-spaltig auf sehr schmal */
.oauth-buttons-3 {
    grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 360px) {
    .oauth-buttons-3 {
        grid-template-columns: 1fr;
    }
}

/* Register-Forms als unsichtbarer Wrapper um den Button -> kein margin/padding */
.oauth-form {
    margin: 0;
    padding: 0;
    display: contents;
}

/* Register-Card: flex-column Container fuer Form + OAuth-Section daneben.
   Loest das nested-form-Problem (HTML5 verbietet form-in-form). */
.registrieren-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.125rem;
    width: 90vw;
    max-width: 24rem;
    min-width: 16rem;
}
.registrieren-card .registrieren-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.oauth-section {
    background: #272727;
    border-radius: 1.125rem;
    box-shadow: 0 0.5rem 2rem 0 rgba(0,0,0,0.37);
    padding: 1.5rem 2vw 1.25rem 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
}

.oauth-buttons .oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 0.5rem;
    border-radius: 0.5rem;
    background: #2f2f2f;
    color: #f1f1f1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.2;
    text-align: center;
    border: 1px solid #3d3d3d;
    border-left: 3px solid var(--brand, #06C6A4);
    transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.05s;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* <button>-Reset: gleiches Rendering wie <a>-Variante im Login-Modal */
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    width: 100%;
}

.oauth-buttons .oauth-btn img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    display: block;
    filter: none;
}

.oauth-buttons .oauth-btn:hover {
    background: #3a3a3a;
    border-color: var(--brand, #06C6A4);
    box-shadow: 0 0 0 1px var(--brand, #06C6A4),
                0 4px 14px rgba(0, 0, 0, 0.4),
                0 0 18px color-mix(in srgb, var(--brand, #06C6A4) 35%, transparent);
}

.oauth-buttons .oauth-btn:active {
    transform: translateY(1px);
}

.oauth-buttons .oauth-btn-discord { --brand: #5865F2; }
.oauth-buttons .oauth-btn-steam   { --brand: #66C0F4; }  /* Steam-Light-Blue, lesbarer als #1B2838 auf dark */
.oauth-buttons .oauth-btn-twitch  { --brand: #9146FF; }
.oauth-buttons .oauth-btn-google  { --brand: #4285F4; }  /* Google-Blau (statt Multi-Color, fuer Lesbarkeit) */

/* Beide Modals 2x2 — konsistent zur Login-Form-Breite */

/* Mobile: ueberlange Provider-Namen schrumpfen */
@media (max-width: 360px) {
    .oauth-buttons .oauth-btn { font-size: 0.82rem; padding: 0.55rem 0.4rem; }
    .oauth-buttons .oauth-btn img { width: 16px; height: 16px; }
}
