:root {
    --tk-auth-button-width: 100%;
    --tk-auth-button-height: 42px;
}

.tk-auth-provider-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 18px;
}

.tk-auth-provider-button {
    width: var(--tk-auth-button-width) !important;
    max-width: 100% !important;
    height: var(--tk-auth-button-height) !important;
    min-height: var(--tk-auth-button-height) !important;
    padding-block: 0 !important;
    padding-inline: 14px !important;
    box-sizing: border-box;
    border-radius: 9999px !important;
    margin-inline: auto !important;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
    gap: 8px;
    font-size: 13px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.tk-auth-provider-row > .tk-auth-provider-button,
.tk-google-auth-stack {
    width: 100% !important;
    min-width: 0;
}

.tk-google-auth-stack {
    position: relative;
}

.tk-google-auth-stack .tk-google-identity-button:not([hidden]) {
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: .01;
    overflow: hidden;
    padding: 0 !important;
    cursor: pointer;
}

.tk-auth-provider-button iframe {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: var(--tk-auth-button-height) !important;
    min-height: var(--tk-auth-button-height) !important;
    border: 0 !important;
    border-radius: 9999px !important;
}

.tk-google-identity-button {
    padding-inline: 0 !important;
    overflow: hidden;
}

.tk-google-identity-button > div {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center;
}

.tk-apple-auth-button {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #111827 !important;
    letter-spacing: .01em;
    box-shadow: 0 8px 18px -16px rgba(15, 23, 42, .6);
}

.tk-apple-auth-button i,
.tk-google-identity-button i {
    font-size: 16px;
}

.tk-apple-auth-button:focus-visible {
    outline: 3px solid #818cf8;
    outline-offset: 3px;
}

.tk-apple-auth-button:disabled {
    opacity: .7;
    cursor: wait;
}

.tk-biometric-auth-button {
    height: var(--tk-auth-button-height) !important;
    min-height: var(--tk-auth-button-height) !important;
    width: min(100%, 360px) !important;
    max-width: 360px !important;
    padding-block: 0 !important;
    padding-inline: 14px !important;
    margin: 10px auto 0 !important;
    font-size: 13px !important;
    line-height: 1.2;
    box-shadow: 0 10px 20px -16px rgba(15, 23, 42, .7);
}

.tk-biometric-auth-button i {
    font-size: 16px;
}

.tk-embedded-android .tk-auth-provider-row {
    grid-template-columns: minmax(0, min(360px, 100%));
    justify-content: center;
    justify-items: center;
}

.tk-embedded-android .tk-google-auth-stack {
    max-width: 360px;
}

@media (max-width: 420px) {
    :root {
        --tk-auth-button-height: 40px;
    }

    .tk-auth-provider-row {
        gap: 8px;
        margin-bottom: 14px;
    }

    .tk-auth-provider-button {
        width: 100% !important;
        padding-inline: 10px !important;
        font-size: 12px !important;
    }

    .tk-biometric-auth-button {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 12px !important;
    }
}

[data-theme="dark"] .tk-fast-auth-status--info {
    background: #1e293b;
    color: #e0e7ff;
}

[data-theme="dark"] .tk-fast-auth-status--error {
    background: #4c0519;
    color: #ffe4e6;
}
