.form-google-identity {
    margin-bottom: 1.5rem;
}

#g_id_signin {
    display: flex;
    justify-content: center;
    min-height: 40px;
    margin-bottom: 0.75rem;
    width: 100%;
}

.google-identity-or {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.google-identity-or .line {
    flex: 1;
    height: 1px;
    background: #ddd;
}

.google-identity-or .or {
    color: #888;
    font-size: 0.875rem;
    text-transform: lowercase;
}

.linked-accounts {
    margin-top: 1.5rem;
}

.linked-accounts h4 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    line-height: 1.3;
}

.linked-account-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d8deeb;
    border-radius: 0.35rem;
    background: #fff;
}

.linked-account-icon {
    flex: 0 0 auto;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.linked-account-info {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 0.2rem;
}

.linked-account-info strong {
    font-size: 1rem;
    line-height: 1.3;
}

.linked-status {
    font-size: 0.92rem;
    line-height: 1.3;
}

.linked-status.linked {
    color: #1f7a3b;
}

.linked-status.not-linked {
    color: #6b7280;
}

.linked-email {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.linked-account-action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.linked-account-action form {
    margin: 0;
}

.linked-account-action .btn {
    min-width: 8rem;
}

.linked-account-action #g_id_link {
    min-height: 44px;
}

.google-link-notice {
    margin-bottom: 0.9rem;
}

@media (max-width: 640px) {
    .linked-account-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .linked-account-action {
        width: 100%;
        justify-content: stretch;
    }

    .linked-account-action .btn,
    .linked-account-action form,
    .linked-account-action #g_id_link {
        width: 100%;
    }
}
