/* Tamagn Bet — Google / Facebook sign-in + required phone modal */

.tb-social-auth-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.tb-social-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.tb-social-btn:hover:not(:disabled) {
    border-color: #cbd5e1;
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.tb-social-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.28);
}

.tb-social-btn:disabled {
    opacity: 0.72;
    cursor: wait;
}

.tb-social-btn--facebook {
    border-color: #dbeafe;
    background: #1877f2;
    color: #fff;
}

.tb-social-btn--facebook:hover:not(:disabled) {
    background: #166fe5;
    border-color: #166fe5;
}

.tb-social-btn__icon {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
}

.tb-social-btn__spinner {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: inherit;
}

.tb-social-btn.is-loading .tb-social-btn__label,
.tb-social-btn.is-loading .tb-social-btn__icon {
    visibility: hidden;
}

.tb-social-btn.is-loading .tb-social-btn__spinner {
    display: flex;
}

.tb-social-auth-error {
    margin: 0.75rem 0 0;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.tb-social-auth-error:empty {
    display: none;
}

.tb-social-auth-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.35rem 0 0.15rem;
}

.tb-social-auth-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #e2e8f0;
}

.tb-social-auth-divider span {
    position: relative;
    z-index: 1;
    padding: 0 0.75rem;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tb-social-auth-email {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
}

.tb-social-auth-email__field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.tb-social-auth-email__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
}

.tb-social-auth-email__input {
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.6875rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #0f172a;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.tb-social-auth-email__input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.tb-social-auth-email__input:focus {
    outline: none;
    border-color: #006aff;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.16);
}

.tb-social-auth-email__input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.tb-social-auth-email__submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.125rem;
    border: none;
    border-radius: 0.75rem;
    background: #006aff;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 106, 255, 0.22);
}

.tb-social-auth-email__submit:hover:not(:disabled) {
    background: #0053b3;
}

.tb-social-auth-email__submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.tb-social-auth-email__submit.is-loading .tb-social-auth-email__submit-label {
    visibility: hidden;
}

.tb-social-auth-email__spinner {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
}

.tb-social-auth-email__submit.is-loading .tb-social-auth-email__spinner {
    display: flex;
}

.tb-social-auth-email__toggle {
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #006aff;
    cursor: pointer;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.tb-social-auth-email__toggle:hover:not(:disabled) {
    color: #0053b3;
}

.tb-social-auth-email__toggle:disabled {
    opacity: 0.5;
    cursor: wait;
}

/* Required phone modal — cannot dismiss until valid phone */
.tb-phone-modal {
    position: fixed;
    inset: 0;
    z-index: 100050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.tb-phone-modal[hidden] {
    display: none !important;
}

.tb-phone-modal__panel {
    box-sizing: border-box;
    width: min(100%, 26rem);
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: 1.25rem;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.06),
        0 20px 48px rgba(15, 23, 42, 0.14);
}

.tb-phone-modal__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background: #e8f2ff;
    color: #006aff;
    font-size: 1.125rem;
}

.tb-phone-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    color: #0f172a;
}

.tb-phone-modal__hint {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color: #64748b;
}

.tb-phone-modal__field {
    margin-bottom: 0.75rem;
}

.tb-phone-modal__input {
    box-sizing: border-box;
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    direction: ltr;
    text-align: left;
}

.tb-phone-modal__input:focus {
    outline: none;
    border-color: #006aff;
    box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.18);
}

.tb-phone-modal__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.25rem;
    border: none;
    border-radius: 0.75rem;
    background: #006aff;
    color: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tb-phone-modal__submit:hover:not(:disabled) {
    background: #0053b3;
}

.tb-phone-modal__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.tb-phone-modal__error {
    min-height: 1.25rem;
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    color: #dc2626;
}
