/* Loaded after Fluent reboot so Identity-style OIDC buttons keep their layout. */
a.btn-oauth {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.8rem !important;
    width: 100% !important;
    min-height: 2.85rem !important;
    padding: 0.7rem 1rem !important;
    box-sizing: border-box !important;
    text-align: center !important;
    text-decoration: none !important;
    color: #1f1f1f !important;
    font-weight: 600 !important;
    border: 1px solid #747775 !important;
    border-radius: 0.7rem !important;
    background: #fff !important;
}

a.btn-oauth:hover,
a.btn-oauth:focus {
    background: #f8fafc !important;
    color: #1f1f1f !important;
    text-decoration: none !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

a.btn-oauth:focus-visible {
    outline: 3px solid #0078d4;
    outline-offset: 3px;
}

.oauth-stack {
    display: grid;
    gap: 0.7rem;
}

svg.oauth-mark,
img.oauth-mark {
    width: 1.25rem !important;
    height: 1.25rem !important;
    max-width: 1.25rem !important;
    max-height: 1.25rem !important;
    flex: 0 0 1.25rem !important;
    display: block !important;
    object-fit: contain;
}

svg.oauth-mark-microsoft {
    width: 1.15rem !important;
    height: 1.15rem !important;
    max-width: 1.15rem !important;
    max-height: 1.15rem !important;
    flex: 0 0 1.15rem !important;
}

details.login-password {
    margin: 0.85rem 0 0;
}

details.login-password > summary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.85rem;
    list-style: none;
    cursor: pointer;
    color: #0c5c8c;
    font-size: 0.9rem;
    font-weight: 650;
}

details.login-password > summary::-webkit-details-marker,
details.login-password > summary::marker {
    content: none;
    display: none;
}

details.login-password > summary::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-0.12rem) rotate(45deg);
    flex-shrink: 0;
}

details.login-password[open] > summary {
    margin-bottom: 0.85rem;
}

details.login-password[open] > summary::after {
    transform: translateY(0.12rem) rotate(225deg);
}

/* Shared Microsoft connection action on account and linking pages. */
.microsoft-connect-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    box-sizing: border-box;
    border: 1px solid #8a8a8a;
    border-radius: 6px;
    background: #fff;
    color: #1f1f1f;
    font-family: "Segoe UI", sans-serif;
    font-size: var(--type-ramp-base-font-size, 14px);
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
}

.microsoft-connect-button:hover {
    background: #f8fafc;
    color: #1f1f1f;
    text-decoration: none;
}

.microsoft-connect-button:focus-visible {
    outline: 3px solid #0078d4;
    outline-offset: 3px;
}

.microsoft-connect-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
